l (length)

l (length)


i (index, remote) Index Level m (mask)
Syntax l{maxlength{,maxvalue}}
l0
Category Processing Codes
Type Processing Code
Description invokes the length function, either restricting processing to values that fall within certain length restrictions or simply displaying the length of a given value.

The "maxlength" parameter indicates that the value will be output only if the length of the string is less than the "maxlength" parameter, otherwise a null is returned.  If "maxlength" is 0 (zero), the length of the data is returned.
Options
See Also input-conversion Processing Codes
Example l0  

Returns the length of field.

l9  

Outputs data if field length is exactly nine characters.

l3,9

Outputs data if field length is greater than three characters and less than nine characters.
Warnings
Compatibility D3 7.0 AP
i (index, remote) Index Level m (mask)