maxLength
maxLength(): Integer;
The maxLength method of the String primitive type returns the declared maximum length of a string variable. If the string variable maximum length has not been declared, the value of the Max_UnboundedLength global constant in the SystemLimits category is returned.
The following example shows the use of the maxLength method.
vars stringValue : String[100]; begin stringValue := 'hello world'; write stringValue.maxLength; // Outputs 100 end;