Hi,
I have some doubts about array type in Macroscheduler.
1) Can we initialize an array as NULL in one line?
2) While accessing array what we are going to use?
E.g. arr[1] or arr_1?
Can you please differentiate between:
Mdl>Arr[1] and Mdl>Arr_1
In macroscheduler both the syntax are being used...
Array Details arr[1] and arr_1 difference?
Moderators: JRL, Dorian (MJT support)
-
- Pro Scripter
- Posts: 63
- Joined: Thu Dec 10, 2009 8:13 am
An array of variables, not an array type
Hi Niroj@Work,
There really is not such a thing as an array type. What Macro Scheduler does is provide some commands to handle arrays of variables having a common naming scheme. In a sense the array of variables is "null" before you start creating the variables.
Some commands such as Separate and FindImagePos create arrays based on the arr_1 scheme.
You can create your own arrays of variables using any scheme you wish
Examples:
Let>arr1=one
Let>arr2=two
Let>arr3=three
Let>arr(1)=able
Let>arr(2)=baker
Let>arr(3)=charlie
Gale
There really is not such a thing as an array type. What Macro Scheduler does is provide some commands to handle arrays of variables having a common naming scheme. In a sense the array of variables is "null" before you start creating the variables.
Some commands such as Separate and FindImagePos create arrays based on the arr_1 scheme.
You can create your own arrays of variables using any scheme you wish
Examples:
Let>arr1=one
Let>arr2=two
Let>arr3=three
Let>arr(1)=able
Let>arr(2)=baker
Let>arr(3)=charlie
Gale