Flow Control Group

HostExplorer Programming

Flow Control Group

3270 5250 VT

Call—Transfers control to a subprogram procedure.

Case—Executes one of a series of statement blocks, depending on the value of an expression.

Choose—Selects and returns a value from a list of arguments. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.

Do Loop—Repeats a block of statements while a condition is TRUE or until a condition becomes TRUE.

Note: 
  Hummingbird Basic does not support Boolean values, so it interprets TRUE as non-zero and FALSE as zero.

Each—Repeats a group of statements for each element in an array or collection.

Note: 
  The For Each Next Statement part is not supported by Hummingbird Basic.

End—An instruction that causes a macro to terminate immediately.

Exit—An instruction that causes a macro to continue without carrying out some or all of the remaining instructions.

For Next Each—Repeats a group of statements for each element in an array or collection. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.

For Next—Repeats a group of statements a specified number of times.

Goto—The Goto statement sends control to a label.

If Then—Executes alternative blocks of program code based on one or more expressions.

MacroDir—Returns the directory of the current macro. A run-time error occurs if the current macro has never been saved. Not supported by Hummingbird Basic.

MacroRun—Plays a macro. Execution continues at the following statement after the macro has completed. Not supported by Hummingbird Basic.

Select Case—Executes one of a series of statement blocks, depending on the value of an expression.

Stop—Halts program execution.

While—Controls a repetitive action.