Let>k=0
Repeat>k
Add>k,1
ReadLN>file,k,result
If>%result%=END,Stop
....Do Process A
Until>k,6
Label>Stop
Looping with no predefined end?
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Ok, Im using some code that looks like this:
//ADD "TD" TO THE LINE NUMBERS
Let>count=0
Label>Loop
ReadLn>file,count,result
If>%result%=END,stop
Press Down
Send Character/Text>TD
Press Home
Message>result
Wait>1
Let>count=%count%+1
Goto>Loop
Label>stop
Using the "Message" command I can see it sifting through the file. Unfortunately I can't seem to get the "TD" in front of the Reference numbers. Can you open the file and "ReadLN" through it or does it have to be closed for "ReadLN" to work?
//ADD "TD" TO THE LINE NUMBERS
Let>count=0
Label>Loop
ReadLn>file,count,result
If>%result%=END,stop
Press Down
Send Character/Text>TD
Press Home
Message>result
Wait>1
Let>count=%count%+1
Goto>Loop
Label>stop
Using the "Message" command I can see it sifting through the file. Unfortunately I can't seem to get the "TD" in front of the Reference numbers. Can you open the file and "ReadLN" through it or does it have to be closed for "ReadLN" to work?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact: