Difference between revisions of "MC-Basic Arrays"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "Arrays (TBD) <pre> dim shared arr1[2] as double </pre> <pre> dim shared arr2[2] as string </pre> Arrays MC-Basic Arrays")
 
 
Line 1: Line 1:
Arrays (TBD)
+
MC-Basic enables definition of arrays of longs, doubles, strings, semaphores, PLS, generic axes and groups, points (joint and/or location) and structures. Array can have up to ten dimensions.
  
 
<pre>
 
<pre>
dim shared arr1[2] as double
+
Common Shared array1[5] As long ' array of integers
</pre>
+
Common Shared array2[20][40] As double ' array of floating points
 
+
dim    Shared array3[100] As string ' array of strings
 
+
dim    array4[120] As utf8' array of UTF8 strings
<pre>
+
common shared array5[32] As generic axis ' array of generic axes
dim shared arr2[2] as string
 
 
</pre>
 
</pre>
  

Latest revision as of 08:50, 21 October 2014

MC-Basic enables definition of arrays of longs, doubles, strings, semaphores, PLS, generic axes and groups, points (joint and/or location) and structures. Array can have up to ten dimensions.

Common Shared array1[5] As long ' array of integers
Common Shared array2[20][40] As double ' array of floating points
dim    Shared array3[100] As string ' array of strings
dim    array4[120] As utf8' array of UTF8 strings
common shared array5[32] As generic axis ' array of generic axes