Structured Programming
These commands and functions make it possible for you to control program execution and branching within a Visual FoxPro program.
Use |
To |
---|---|
Execute the first set of commands whose conditional expression evaluates to true (.T.). |
|
Execute a set of commands within a conditional loop. |
|
Exit a DO WHILE, FOR, or SCAN loop. |
|
Execute a set of commands for each element in a Visual FoxPro array or collection. |
|
Execute a set of commands a specified number of times. |
|
Conditionally include source code at compile-time. |
|
Conditionally include a set of commands at compile time if a compile-time constant is defined. |
|
Evaluate the results from a list of conditions. |
|
Conditionally execute a set of commands based on the value of a logical expression. |
|
Return one of two values depending on the value of a logical expression. |
|
Return program control directly to the beginning of a looping structure. |
|
Move the record pointer through the currently selected table and execute a block of commands for each record that meets the specified conditions. |