What it does
RemoveString writes a value: it removes rather than reads. It takes string (a string) and remove (a string), and answers a string. That is the first of 4 forms.
Syntax
1
RemoveString(string string, remove string) → string2
RemoveString(string string, remove string, mode integer) → string3
RemoveString(string string, remove string, mode integer, position integer) → string4
RemoveString(string string, remove string, mode integer, position integer, occurrences integer) → stringParameters
| Name | Type | In forms |
|---|---|---|
| string | string | all |
| remove | string | all |
| mode | integer | 2, 3, 4 |
| position | integer | 3, 4 |
| occurrences | integer | 4 |
Every form returns
string
Example · generated
Form 1, the short one
DO Print(RemoveString("hello", "value")) Sync()LOOPForm 4, with every argument
DO Print(RemoveString("hello", "value", 1, 1, 1)) Sync()LOOPRemoveString is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.