The following pages provide detailed information on the basic statements that are provided as an integral portion of the Guidance Programming Language. These statements provide standard functionality found in any programming language such as control structures, variable declarations, subroutine and function calls, etc. As much as possible, these statements have been modeled after standard instructions provide by other variants of the Basic Programming Language.
Table 19-94 summarizes the statements that are described in greater detail in the following sections.
Statement | Description |
---|---|
Transfers control to a procedure and ignores its return value. |
|
Used within a Select...Case...End Select sequence to specify possible matches for the target value and to delineate the statements to be executed if a match occurs. |
|
Begins a Class definition. |
|
Declares a read-only variable for use in a procedure. |
|
Creates a Delegate class that provides a means for indirectly calling a function or subroutine procedure using an object variable. |
|
Declares a variable for use in a procedure. |
|
Bounds a block of instructions that are repeatedly executed so long as a specified expression evaluates to True or until the expression value becomes True. |
|
Used within an If…Then…Else…End If series of statements to conditionally execute alternative blocks of instructions. |
|
Marks the end of a control structure or major project element such as a program or function. |
|
Terminates the execution of a block of instructions within the innermost control structure of a specified type or a procedure. |
|
Bounds a block of instructions that are repeatedly executed a specified number of times. |
|
Begins a user-defined function procedure. |
|
Begins a Get procedure block within a Property procedure definition. |
|
Performs an unconditional branch and continues execution at a specified labeled instruction. |
|
Conditionally executes a block of embedded statements based upon the value of an expression. |
|
Marks the end of a Do…Loop block of instructions and in some instances also specifies the loop termination condition. |
|
Begins a user-defined module section. All variable definitions and procedures must be inside a Module or Class definition. |
|
Marks the end of a For…Next block of instructions. |
|
Begins a user-defined Property procedure. |
|
Increases or decreases an array size by changing the array's upper bounds. |
|
Causes a user-define procedure to return control to the calling procedure and optionally return a value. |
|
Evaluates a target expression, compares its value to a series of values and executes the block of statements associated with the first matching value. |
|
Begins a Set procedure block within a Property procedure definition. |
|
Begins a user-defined subroutine procedure. |
|
Bounds a block of instructions that are repeatedly executed so long as a specified expression evaluates to True. |