Parameters: string1 Character string that is to be compared with a second
character string
string2 Character string that is to be compared with the first
character string
CaseInsensitive Comparison with/without consideration of upper/lower
case:
Not
specified or FALSE = upper/lower case is considered
TRUE = upper/lower case is not considered
Example
REG[0]=STRCMP("Hugo", "HUGO") ; Result = 32
; (<> 0, strings are not identical)
REG[0]=STRCMP("Hugo", "HUGO", TRUE) ; Result = 0
; (== 0, stings are identical)
STRINSERT function: Insert string
Syntax: STRINSERT
(string1, string2 , insert position)
Description: STRINSERT inserts a character string at a specific position in a character string.
Parameters: string1 Character string in which a character string is to be in‐
serted
string2 Character string that is to be inserted
insert position Position at which the character string is to be inserted
Example
REG[0]=STRINSERT("Hello!", " world", 5) ; Result = "Hello world!")
STRREMOVE function: Remove string
Syntax: STRREMOVE
(string1, remove positon , count)
Description: STRREMOVE removes a specific number of characters at a specific position
within a character string.
Parameters: string1 Character string from which characters are to be re‐
moved
remove position Position at which characters are to be removed from the
character string
count Number of characters to be removed
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3 155