$Len

From m204wiki
(Redirected from $LEN)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)