[comp.os.vms] Pascal LENGTH query.

ijah400%ivax.DECnet@GOLD.BACS.INDIANA.EDU ("IVAX::IJAH400") (07/15/88)

Here is the definitive answer to the Pascal LENGTH query from John Reagan,
the VAX Pascal Project Leader at Digital:
___________________________________________________________________________

Since its creation in VAX PASCAL V2.0, the LENGTH predeclared function
has always returned the CURRENT length of varying and conformant varying
variables.  When used upon PACKED ARRAY OF CHARs, the current length
and maximum lengths are the same.

To get the maximum size of a varying or conformant varying variable,
you can use the SIZE routine on the .BODY portion of the varying.

The ".LENGTH" portion of a varying or conformant varying is identical
to the LENGTH routine.

	       -John Reagan (VAX Pascal Project Leader)
___________________________________________________________________________

     - Jim Harvey
     ijah400@indyvax (bitnet) or ijah400%ivax.decnet@gold.bacs.indiana.edu