STR_LENGTH, STR_LNG
            Script Function: Returns the length of a string
Syntax
STR_LENGTH (String)
STR_LNG (String)
| 
                         Syntax  | 
                    
                         Description/Format  | 
                
|---|---|
| 
                         String  | 
                    
                         Alphanumeric string  | 
                
Return code  | 
|---|
Number of string characters  | 
Both script functions are functionally identical.
Examples
The following script returns the length of the string (2):
:SET &LENGTH# = STR_LENGTH("AE")
The following example returns 18 as the number of characters.
:SET &number# = STR_LENGTH(" Automic software ")
The following example checks the value (string) that is assigned to a script variable, and retrieves the length of the string.
:SET &number# = STR_LENGTH(&string)
See also: