Replaces the specified text with another string. If Ignore Case is TRUE then upper-case and lower-case letters are considered to be equal.
Parameters
String to Parse |
The original string that gets the substring replaced. |
Substring to Replace |
Find all instances of this and replace them. |
Replacement Substring |
The replacement text to use. |
Ignore Case |
Indicates whether the case of the letters is taken into consideration. |
Format
String_Replace ("String to Parse", "Substring to Replace", "Replacement Substring", Ignore Case)
Return Value
Returns a string where all instances of Substring to Replace have been replaced with Replacement Substring.
Example
Script( String_Replace_Test )
String( strResult )
Activate( From_Menu )
strResult = String_Replace( "123456789012345", "2", "aaaaa", FALSE )
Message( strResult, 0 )
Return
See Also
String_Set, String_Combine, String_Left, String_Right, String_Middle, String_Upper, String_Lower, String_Only_Characters, String_Strip_Characters, String_Trim_Spaces_Start, String_Trim_Spaces_End, Number_To_String_Binary, Number_To_String_Octal, Number_To_String_Decimal, Number_To_String_Hexadecimal_Lowercase, Number_To_String_Hexadecimal_Uppercase, Ask_String, Ask_String_Password, Ask_String_Uppercase, Ask_String_Lowercase, String_Equal
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other