Compaq AAQ2G1FTK Marine Radio User Manual


 
Using the STRING, UNSTRING, and INSPECT Statements
5.3 Examining and Replacing Characters Using the INSPECT Statement
Figure 5–2 Matching Delimiter Characters to Characters in a Field
Instruction FIELD1 Value
ABCDEFGHIINSPECT FIELD1...BEFORE "E".
ABCDEFGHIINSPECT FIELD1...AFTER "E".
ABCDEFGHIINSPECT FIELD1...BEFORE "K".
ABCDEFGHIINSPECT FIELD1...AFTER "K".
ABCDEFGHIINSPECT FIELD1...BEFORE "AB".
ABCDEFGHIINSPECT FIELD1...AFTER "AB".
ABCDEFGHIINSPECT FIELD1...BEFORE "HI".
ABCDEFGHIINSPECT FIELD1...AFTER "HI".
ABCDEFGHIINSPECT FIELD1...BEFORE "I".
ABCDEFGHIINSPECT FIELD1...AFTER "I".
ZK1426AGE
The compiler alters the digit position containing the sign before beginning the
INSPECT operation and restores it to its former value after the operation. If
the sign’s digit position does not contain a valid ASCII signed numeric digit,
redefinition causes the value to change.
Table 5–10 shows these original, altered, and restored values.
The compiler never moves an implicitly redefined item from its storage position.
All redefinition occurs in place.
The position of an implied decimal point on numeric quantities does not affect
implicit redefinition.
Using the STRING, UNSTRING, and INSPECT Statements 519