|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| str.replace(sourceString, stringToFind, newString, caseSensitive, replaceAll) |
Parameters
| STRING | sourceString | Source string.
| | STRING | stringToFind | String to to be replaced by the new string.
| | STRING | newString | String to replace the string to find.
| | BOOLEAN | caseSensitive | Optional. Default is false. If set to true, the comparison operation is case sensitive.
| | BOOLEAN | replaceAll | Optional. Default is true. If set to false, the function only replaces the first occurance. |
Return value
Description
| Replaces a string by another string and returns the result. |
MioScript Sample Code
&oldString = "Hello, World!"
&newString = str.replace(&oldString, "World", "Universe")
alert(&bewString) |
|
|
|