forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how can I kill a a loop

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Desire
Newbie


Joined: 17 Jun 2005
Posts: 1
Location: Irvine

PostPosted: Fri Jun 17, 2005 2:10 am    Post subject: how can I kill a a loop Reply with quote

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
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Jun 17, 2005 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jun 20, 2005 4:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group