Subscripted parameters

Each of the 16 elements in a numeric parameter and the 64 characters in a string parameter can be individually accessed through the use of subscripting. This has the form:

parm (numexp)

where

[parm] ...is a defined parameter.
[numexp] .is a numeric expression used as a subscript 
          and subscripts start with a value of 1.

For example, if TEXT has the value "ABCD123" then TEXT(3) addresses the third position, which contains the value "C". If VECTOR has the values 1,3,5,2, then VECTOR(2) addresses the second position in VECTOR, which contains the value 3.

This subscripting capability is useful for loop control, list checking. and limited forms of text manipulation. These programming techniques will be introduced over the next few sections.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.