Hints, tips and tricks for newbies
Moderators: Dorian (MJT support), JRL
-
machinogodzilla
- Newbie
- Posts: 17
- Joined: Sun Jul 30, 2006 11:32 pm
Post
by machinogodzilla » Mon Aug 21, 2006 10:39 pm
The below macro does not work (Error: Label not found) although in the help file there is written: "Goto>Label_Name. Label_Name can be or include a variable name". Aparently the Label itself cannot, am I right?
Code: Select all
Let>m=1
GoTo>%m%
Label>%m%
MessageModal>%m%
And another macro that does not work. This time the problem with a variable and an array:
Code: Select all
Let>m=1
Let>Set[m]=3|6|9
Separate>Set[1],|,part
MessageModal>%part_1%,%part_2%,%part_3%
-
Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
-
Contact:
Post
by Bob Hansen » Tue Aug 22, 2006 12:05 am
Re the second script, change from
m to
%m% in Let> line, like this:
Code: Select all
Let>m=1
Let>Set[%m%]=3|6|9
Separate>Set[1],|,part
MessageModal>%part_1%,%part_2%,%part_3%
=================================
Re first script, need to use varible before Label> line like this:
Code: Select all
Let>m=0
Label>Start
Let>m=%m%+1
GoTo>Drive%m%
Label>Drive1
MessageModal>%m%
Goto>Start
Label>Drive2
MessageModal>%m%
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Tue Aug 22, 2006 12:08 am
In the second example you need to change:
Let>Set[m]=3|6|9
to
Let>Set[%m%]=3|6|9