ScriptEigener Objekttyp in der Automation Engine Functions: 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 |
Comments
Both script 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:
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by function