Inspect Manual
Using Inspect With Pascal
Inspect Manual—429164-006
12-14
Subrange Types
When you use a variable of subrange type in a DISPLAY command, Inspect displays
the variable of the host type. If you want Inspect to display the ordinal representation
of the variable, specify a numeric format; for example:
-PASOBJ-DISPLAY workday
WORKDAY = THU
-PASOBJ-DISPLAY workday IN DECIMAL
WORKDAY = 3
-PASOBJ-DISPLAY array_index
ARRAY_INDEX = 10
You can modify variables of subrange type using the host type of the variable or an
ordinal value of the subrange; for example:
-PASOBJ-MODIFY workday = mon
-PASOBJ-MODIFY workday = 0
This example shows the internal attributes of the objects from the previous
declarations:
-PASOBJ-INFO IDENTIFIER workday
WORKDAY: VARIABLE
storage^info:
TYPE=DEFINED TYPE, ELEMENT LEN=8 BITS, UNIT SIZE= 1 ELEMENTS
access^info:
#GLOBAL+1 WORDS
structure^info:
CHILD= WEEKDAY
-PASOBJ-INFO IDENTIFIER array_index
ARRAY_INDEX: VARIABLE
storage^info:
TYPE=DEFINED TYPE, ELEMENT LEN=16 BITS, UNIT SIZE= 1 ELEMENTS
access^info:
#GLOBAL+2 WORDS
structure^info:
CHILD= INDEX
-PASOBJ-INFO IDENTIFIER weekday
WEEKDAY: DEFINED TYPE
access^info:
TYPE= SUBRANGE, SUBRANGE CLASS= ENUMERATION, HOST ID= DAYS,
LOWER= MON, UPPER= FRI
-PASOBJ-INFO IDENTIFIER index
INDEX: DEFINED TYPE
access^info:
TYPE= SUBRANGE, SUBRANGE CLASS= INTEGER, LOWER= 0, UPPER= 75