Difference between revisions of "MC-Basic Arrays"
(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: | ||
− | + | 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> | ||
− | + | 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 | |
− | |||
</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