Script works in v7.2.040 but not in 7.2.050

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
transolut

Script works in v7.2.040 but not in 7.2.050

Post by transolut » Wed May 19, 2004 1:56 pm

I am trying to write an application for a customer. We purchased Version 7.2.050 for them. I have 7.2.040 on my machine. My script runs OK on my machine but not on theirs. I went back and tried the example script in the help menu:

GetFileList>c:\temp\*.*,files
Separate>files,;,file_names
MessageModal>Num Files: %file_names_count%

Let>k=0
Repeat>k
Let>k=k+1
Message>file_names_%k%
Until>k,file_names_count


This works fine on my machine, but the first Message box says:
"Num Files %file_names_count%"

and then an error box pops up that says:
"Error - Label K not found!"

Is this a bug in the current version?

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:29 pm

You said this is the script from the Help file.

What we need to look at is the script that does not work. This works on 7.2.50. I suspect you may have a Trailing Space Character or an extra space character in the bad script.

(Suggest you delete duplicate posting from other forum since answer already posted here).
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
transolut
Newbie
Posts: 14
Joined: Wed May 19, 2004 2:00 pm
Location: Des Moines, IA USA

Post by transolut » Wed May 19, 2004 2:56 pm

Thanks, yes it is a trailing spaces problem. I boiled it down to the repeat - until not working properly. When I pasted the example in 7.2.040 it worked OK, but when I pasted the same example in 7.2.050 I got the errors.

I went back and removed the trailing spaces from the example noted and it worked properly, so does my original script now that I removed trailing spaces from it.

Thanks for the tip. I am still a rookie with this application but I really like it.

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