Array Details arr[1] and arr_1 difference?

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
Niroj@Work
Pro Scripter
Posts: 63
Joined: Thu Dec 10, 2009 8:13 am

Array Details arr[1] and arr_1 difference?

Post by Niroj@Work » Thu Apr 01, 2010 6:54 am

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...

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

An array of variables, not an array type

Post by gdyvig » Thu Apr 01, 2010 2:33 pm

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

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts