Parameters: string String in which FindString is to be replaced with Replace‐
String.
FindString String to be replaced
ReplaceString Replacement string (is used instead of the FindString)
start Starting position for search and replace operations
count Number of characters that are to be searched from the start‐
ing position after FindString
Return value:
string = Empty string Copy of string
FindString = Empty string Copy of string
ReplaceString = Empty string Copy of string, in which all occurrences of Find‐
String are deleted
start > Len(String) Empty string
count = 0 Copy of string
STRCMP function: Compare strings
Syntax: STRCMP
(string1, string2 [, CaseInsensitive])
Description: STRCMP compares a character string with another character string.
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
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 185