◄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;