maxLength
maxLength(): Integer;
The maxLength method of the StringUtf8 primitive type returns the declared maximum length of the receiver. If the maximum length of a StringUtf8 variable has not been declared, -1 is returned.
The following example shows the use of the maxLength method.
vars str8 : StringUtf8[100]; begin str8 := @"hello world"; write str8.maxLength; // Outputs 100 end;