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?
Script works in v7.2.040 but not in 7.2.050
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
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).
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!
Bob
A humble man and PROUD of it!
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.
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.