STR_LENGTH, STR_LNG

Script Functions: Returns the length of a string

Syntax

STR_LENGTH(String)
STR_LNG
(String)

Syntax

Description/Format

String

Alphanumeric string
Format: script literal or script variable

 

Return code

Number of string characters

Comments

Both scriptEgalement un type d'objet distinct dans l'Automation Engine. functions are functionally identical.

Examples

The first example returns 18 as the number of characters.

:SET &number# = STR_LENGTH(" Automic software ")

The second example retrieves the length of the string that is assigned with a script variable.

:SET &number# = STR_LENGTH(&string)

See also:

Script Elements - Strings

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by function