Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


"continue" statement in VBScript?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,43344
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> "continue" statement in VBScript?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 "continue" statement in VBScript? - 2/19/2007 6:23:36 PM   
  cool_walking_

 

Posts: 4
Score: 0
Joined: 2/19/2007
Status: offline
Is there an equivalent to the "continue" statement in other languages?

I need to do

      

< Message edited by cool_walking_ -- 2/19/2007 6:26:42 PM >
 
 
Post #: 1
 
 RE: "continue" statement in VBScript? - 2/19/2007 7:37:27 PM   
  ehvbs

 

Posts: 2078
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi cool_walking,

nice to meet you again. There is no "continue" in VBScript, and I'd hesitate
to use a trick like


      

to simulate it. But restructuring the code just to please the language isn't so hot (n)either.

ehvbs

(in reply to cool_walking_)
 
 
Post #: 2
 
 RE: "continue" statement in VBScript? - 2/20/2007 6:26:38 AM   
  DiGiTAL.SkReAM


Posts: 1157
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
quote:

ORIGINAL: cool_walking_

Is there an equivalent to the "continue" statement in other languages?


Do you mean something like this:

      


_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to cool_walking_)
 
 
Post #: 3
 
 RE: "continue" statement in VBScript? - 2/20/2007 6:42:56 AM   
  ehvbs

 

Posts: 2078
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi DiGiTAL.SkReAM  - you demoized "break" not "continue" in VBScript. (linecount down to 1!) ehvbs

(in reply to DiGiTAL.SkReAM)
 
 
Post #: 4
 
 RE: "continue" statement in VBScript? - 2/20/2007 6:48:05 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
The only way to really simulate continue is to just nest all of your code in a bunch of nested If-Then blocks. Very ugly, but logically the same. To be truthful, I would re-evaluate your logic if you truly think you need continue.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ehvbs)
 
 
Post #: 5
 
 RE: "continue" statement in VBScript? - 2/20/2007 6:58:44 AM   
  DiGiTAL.SkReAM


Posts: 1157
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
quote:

ORIGINAL: ehvbs

Hi DiGiTAL.SkReAM  - you demoized "break" not "continue" in VBScript. (linecount down to 1!) ehvbs


I am truly getting concerned for you, big guy.

ebgreen, I think we may have to stage an intervention if ehvbs' low linecount continues.

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to ehvbs)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> "continue" statement in VBScript? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts