Arrays
Arrays in MacroScript are essentially ordinary variables with a numeric suffix. The suffix format can take any format you prefer, although built in functions which return arrays use _n where n is the numeric identifier.
Array examples:
ArrayDim>Names,3
Let>Names_1=Fred
Let>Names_2=Sally
Let>Names_3=Geoff
Let>k=2
Message>Names_%k%
Let>Names_%k%=Louise
Arrays created by MacroScript functions are displayed in the debugger watch list as <array> and can be expanded by double clicking to reveal the array contents. This avoids the watch list being cluttered up with all array elements and can speed up debugging scripts with large arrays. To get the same behaviour for user defined arrays use the ArrayDim command to create an empty array.
Array functions:
Using VBScript Arrays:
Use the VBEval command to get the value of a VBScript array variable into a MacroScript variable:
VBEval>MyArray(2,3),theValue