REPLACE Function: Replacing characters
Syntax:
Description:
Parameters:
Return value:
See also
Use of strings (Page 66)
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
( string, FindString, ReplaceString [, start [, count ] ] )
REPLACE
The REPLACE function replaces a character/string in a string with another
character/string.
string
String in which FindString is to be replaced with
ReplaceString.
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
starting position after the FindString.
string = Blank string
FindString = Blank string
ReplaceString = Blank string
start > Len(String)
count = 0
Programming commands
Copy of string
Copy of string
Copy of string, in which all occurrences of
FindString are deleted
Blank string
Copy of string
6.3 Functions
127