| View previous topic :: View next topic |
| Author |
Message |
Desire Newbie
Joined: 17 Jun 2005 Posts: 1 Location: Irvine
|
Posted: Fri Jun 17, 2005 2:10 am Post subject: how can I kill a a loop |
|
|
I have a software that has many pages. I created a script that goes in and out of pages. I want to be able to kill the loop when the user selects a stop button.
Does anyone know how to do this?
-Desire |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Fri Jun 17, 2005 10:32 am Post subject: |
|
|
| Code: |
%%counter = 0
%%numFiles = 10
repeat
REM Do something meaningful here...
REM Check for an event here
%E = @event()
REM Update our counter variable
%%counter = @succ(%%counter)
until @equal(%%counter,%%numFiles)@equal(%E,STOPBUTTON)
|
Maybe this helps. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Jun 20, 2005 4:25 pm Post subject: |
|
|
Though probably not technically correct, if you want to get out of a loop
you can use GOTO <label> and get out. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|