LENGTH Function


Description: Counts the number of characters in the string. The length is equal to the number of Unicode code units in the string. DBCS characters are counted as one character even though they occupy more than one byte.

Parameters: String

  • Source text: The string containing the source value to be counted.

Return: Integer equal to the number of characters in the string.

Syntax: LENGTH (<source text>)

Example: Set String 1 number to the length of the value in String 1.

DE( "String 1 number" ).setValue
  ( NUM2STR( LENGTH( DE( "String 1" ).getValue( ) ) ) );

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*