9.3.82 LEN_TRIM (STRING)

Description:  Returns the length of the character argument without counting trailing blank characters. 
Class:  Elemental function; Generic 
Arguments:  STRING must be of type character. 
Results:  The result type is default integer. The result has a value equal to the number of characters remaining after any trailing blanks in STRING are removed. If the argument contains only blank characters, the result is zero. 

Examples

In these examples, the symbol - represents a blank.

LEN_TRIM ('---C--D---') has the value 7.

LEN_TRIM ('-----') has the value 0.


Previous Page Next Page Table of Contents