Problem using variable in Goto command

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
dave henning

Problem using variable in Goto command

Post by dave henning » Wed May 19, 2004 11:15 am

can anybody explain why sometimes my variables passed as arguments to Goto commands are dereferenced and sometimes they're not? i'm using 6.2 and it just doesn't seem to be working right. here's an example of what isn't working:


Let>afterCheckSeat=checkSeat_2
Goto>checkSeat
Label>checkSeat_2

Label>checkSeat
// do stuff
Goto>afterCheckSeat


however, the following code (which is in the same script) does work:


Let>afterCheckCurrentCell=checkCell_9
Goto>checkCurrentCell
Label>checkCell_9

Label>checkCurrentCell
// do stuff
Goto>afterCheckCurrentCell


the first code snippet gives me the following popup:

Error - Label afterCheckSeat Not Found!

i've tried putting %'s around the afterCheckSeat but the same error message comes up only with the %'s. i've also confirmed that the value of afterCheckCurrentCell holds the correct value right before the call.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed May 19, 2004 2:43 pm

Check for and remove any Trailing Space characters, especially on lines that include "afterCheckSeat"

Version 7.1.013 added the ability to "Show All Chars" from the Editor Menu.
Version 7.2.031 added the ability to "Remove Trailing Spaces" from the Editor Menu.

Current version is 7.2.050
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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