$Len

From m204wiki
(Redirected from $LEN)
Jump to navigation Jump to search

The $Len function determines the current length of the value of a String. The $Len function takes a field name, character literal, or %variable as its one argument.

Examples

  1. The $Len result in the following statement is 4 if the STATE field of the current record contains OHIO:

    %n = $len(STATE)

  2. The $Len result in the following statement is 13 if the %name variable has a current value of Richard Smith:

    %n = $len(%name)