$Len

From m204wiki
Revision as of 00:08, 22 June 2018 by JAL (talk | contribs) (misc formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)