9.0

157
DlgText DlgItem$,"&Hide"
DlgVisible "Text
",True
DialogFunc% = True
'do not exit the dialog
End
Select
End
Select
End
Function
Do Statement
Syntax
Do
statement
s
Loop
-or-
Do {Until|While} condexpr
statement
s
Loop
-or-
Do
statement
s
Loop {Until|While} condexpr
Group
Flow Control
Description
Form 1: Do statements forever. The loop can be exited by using Exit or Goto.
Form 2: Check for loop termination before executing the loop the first time.
Form 3: Execute the loop once and then check for loop termination.
Loop Termination:
Until condexpr
: Do statements until condexpr is True.
While condexpr: Do statements while condexpr is True.
See Also: For, For Each, Exit Do, While.
Example
Sub Main
I = 2
Do
I = I*2
Loop Until I > 10
Debug
.Print I ' 16
End
Sub