7. Embedded QUEL for Pascal : Pascal Variables and Data Types : Variable and Type Declarations : Subrange Type Definition
 
Share this page                  
Subrange Type Definition
The syntax for declaring a subrange type definition is either:
type type_name = [+|-]integer_const .. [+|-]integer_const;
or
type type_name = string_const .. string_const;
Syntax Notes:
1. An integer_const may be either an integer literal or a named integer constant.
2. A string_const must be either a string literal or the name of a string constant. Although the preprocessor accepts any length string constant, the compiler requires the constant to be a single character.
##  type
##    Alpha = 'a' .. 'z';
##    Months = 1 .. 12;
##    MinMax = -Value .. Value; {"Value" is an 
##      integer constant}
##    Updated_States = CHANGED .. DELETED;