how do I break out of do until.. loop?

Thread: how do I break out of do until.. loop?

1. Senior Member
Join Date
Dec 1969
Posts
702

how do I break out of do until.. loop?

I am in the middle of a do until loop and need to do an if statement and if it is true, I need to stop the looping, can you tell me what command I use to do that?<BR><BR>Thanks

2. Senior Member
Join Date
Dec 1969
Posts
1,765

RE: how do I break out of do until.. loop?

dim blnDone<BR><BR>blnDone = false<BR><BR>do until blnDone<BR><BR>if blah blah blah is true then<BR>dlndone=true<BR>end if<BR><BR>loop

3. Senior Member
Join Date
Dec 1969
Posts
16,931

Or (better)

&#060;%<BR>do until x = 1<BR> if x &#062; 1 then exit do<BR> x = x + 1<BR>loop<BR>%&#062;<BR><BR>Craig.

4. Senior Member
Join Date
Dec 1969
Posts
1,765

Depends on what x equals before you enter

the loop!

5. Senior Member
Join Date
Dec 1969
Posts
702

Thank You, you solved my prob. <eom>

.

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•