RemoveString

Family: String · 4 forms

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) → string
2
RemoveString(string string, remove string, mode integer) → string
3
RemoveString(string string, remove string, mode integer, position integer) → string
4
RemoveString(string string, remove string, mode integer, position integer, occurrences integer) → string

Parameters

NameTypeIn forms
stringstringall
removestringall
modeinteger2, 3, 4
positioninteger3, 4
occurrencesinteger4

Every form returns

string

Example · generated

Form 1, the short one

DO  Print(RemoveString("hello", "value"))  Sync()LOOP

Form 4, with every argument

DO  Print(RemoveString("hello", "value", 1, 1, 1))  Sync()LOOP

RemoveString 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.

21 commands in String