qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Length Function
  Summary Details Example                                   Back
 
  Argument
 
    source     String expression
 
  Returns
 
    Integer    Number of characters currently in the string
 
  Description
 
    The Length function returns the dynamic length of a string. The
    dynamic length is the current number of characters within the
    declared length of a string. The declared length is the maximum
    number of characters a string will store. It is specified when the
    string is defined.
 
    Length can operate on the result of a string expression, as in
 
       result := Length( Copy( source, 3, 4 ) );
 
    Use Delete to change the length of a string.
 
    Length does not return the declared length of a string. To get the
    maximum length that a string variable may hold,
 
       result := SizeOf( source ) - 1;