<STRING_RES>=TOLOWER("<string>")
Meaning
TOUPPER: Using the TOUPPER command, all of the letters in a character string are con‐
verted into uppercase letters.
TOLOWER: Using the TOLOWER command, all of the letters in a character string are con‐
verted into lowercase letters.
<string>: Character string that is to be converted
Type: STRING
<STRING_RES>: Variable for the result of the conversion
Type: STRING
Example
Because user inputs can be initiated on the user interface, they can be given standard
capitalization (uppercase or lowercase):
Program code
DEF STRING [29] STRG
...
IF "LEARN.CNC"==TOUPPER(STRG) GOTOF LOAD_LEARN
3.1.4.5 Determine length of string (STRLEN)
The STRLEN command determines the length of a character string.
Syntax
<INT_RES>=STRLEN("<STRING>")
Meaning
STRLEN: The STRLEN command determines the length of the specified character string.
The number of characters that are not the 0 character, counting from the beginning
of the string is returned.
<string>: Character string whose length is to be determined
Type: STRING
<INT_RES>: Variable for the result of the determination
Type: INT
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 451