5. Embedded QUEL for Ada : Ada Variables and Data Types : Variable Usage : Using Indicator Variables
 
Share this page                  
Using Indicator Variables
The syntax for referring to an indicator variable is the same as for a simple variable, except that an indicator variable is always associated with a host variable:
host_variable:indicator_variable
Syntax Note:
The indicator variable can be a simple variable, an array element or a record component that yields a 2-byte integer (short_integer). For example:
## ind: Short_Integer; -- Indicator variable
## ind_arr: array(1..10) of Short_Integer; -- Indicator
                                           -- array
var_1:ind_var
var_2:ind_arr(2)