|
|
|
Online Scripting Reference
|
|
replaceText
|
Purpose
|
Replaces a value, or set of values within a variable.
|
|
Syntax
|
replaceText var {oldText} {newText}
var: A variable containing the text to be replaced.
{oldText}: The text to be replace.
{newText}: The text to replace the old text with.
|
|
Notes
|
This command will scan through the contents of "var" replacing any text with that which is specified.
This command is extremely useful when text parsing - you can cut out uncertain characters in a block of text by converting them to spaces (or nothing), then extract the data you want using "getWord".
|
|
Example
|
|
Return to item listing |
|
|