DO WHILE ... ENDDO Command
Executes a set of commands within a conditional loop.
DO WHILE lExpression Commands [LOOP] [EXIT] ENDDO |
Parameters
- lExpression
-
Specifies a logical expression whose value determines whether the commands between DO WHILE and ENDDO are executed. As long as lExpression evaluates to true (.T.), the set of commands are executed.
- Commands
-
Specifies the set of Visual FoxPro commands to be executed as long as lExpression evaluates to true (.T.).
- LOOP
-
Returns program control directly back to DO WHILE. LOOP can be placed anywhere between DO WHILE and ENDDO.
- EXIT
-
Transfers program control from within the DO WHILE loop to the first command following ENDDO. EXIT can be placed anywhere between DO WHILE and ENDDO.
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic