Inspect Manual
Using Inspect With Pascal
Inspect Manual—429164-006
12-6
Default Values
data-reference '[' index [ ,index ]... ']'
specifies an array variable.
index
specifies the subscript of an array element or the subscript range of a
group of array elements.
data-reference.identifier
specifies a field of a record variable.
data-reference^
specifies the value referenced by a pointer or buffer (file) variable.
Default Values
If you do not specify scope-path, Inspect uses the current scope path.
Usage Considerations
Any Pascal data location to which you refer must be declared in a scope unit that
was compiled with the SYMBOLS directive. The location can be anywhere in an
active scope unit.
Examples
This example assume the Pascal program fragment:
PROGRAM nested;
VAR y,z : integer;
...
PROCEDURE outer;
VAR a,b : integer;
...
PROCEDURE inner;
VAR c,d : integer;
...
END;
END;
END;
Here are some data locations:
Data Location Specifies
#OUTER.INNER.C The most recent instance of C.
#OUTER.INNER(-1).C The second-most recent instance of C.
#OUTER.A The most recent instance of A.
#OUTER.INNER(1).D The oldest (first) instance of D.