Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 simple do loop problem (newbie)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

neerajdeo
Starting Member

USA
33 Posts

Posted - 17 May 2002 :  15:43:01  Show Profile  Visit neerajdeo's Homepage  Send neerajdeo a Yahoo! Message
Hello

I have a simple loop
-------------------------------------
do while NOT result.EOF
flag = 0
'some operations

if flag = 1 then
result.movenext
'here I want to go back to the beginning of the do loop
??????
end if

result.movenext
loop
----------------------------------

Its like using the 'continue' in C/C++. Whats the asp equivalent

Please help
thanks
Neeraj

Nathan
Help Moderator

USA
7664 Posts

Posted - 18 May 2002 :  01:19:56  Show Profile  Visit Nathan's Homepage
Dont know if VBScript has a function for that. . . but did you try using

do -
-
-
-
if this then
loop
end if
-
-
-
loop

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 18 May 2002 :  01:26:42  Show Profile  Visit Gremlin's Homepage
Theres no equivilent of continue in vbscript that I'm aware of.

www.daoc-halo.com
Go to Top of Page

neerajdeo
Starting Member

USA
33 Posts

Posted - 18 May 2002 :  12:52:01  Show Profile  Visit neerajdeo's Homepage  Send neerajdeo a Yahoo! Message
Well putting the loop ststement inside the if block gives an error that matching do required. I got around the prob by setting some flags but its strange that this functionality is missing from ASP

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 2.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07