Purpose |
Return a copy of a
|
Syntax |
x$ = REMOVE$(MainString, [ANY] MatchString) |
Remarks |
The REMOVE$ function has the following parts: |
MainString |
The string expression from which to remove characters. |
MatchString |
The string expression to remove all occurrences of. If MatchString is not present in MainString, all of MainString is returned intact. |
ANY |
If the ANY keyword is included, MatchString specifies a list of single characters to be searched for individually, a match on any one of which will cause that character to be removed from the result. |
Restrictions |
REMOVE is case-sensitive. |
See also |
CLIP$, EXTRACT$, INSTR, LTRIM$, MID$, REPLACE, RETAIN$, RIGHT$, RTRIM$, SHRINK$, TALLY, TRIM$, UNWRAP$, VERIFY |
Example |
' The following returns "aadabra", ' removing the string "bac" x$ = REMOVE$("abacadabra", "bac")
' The following returns "dr", ' removing all "b", "a", and "c" x$ = REMOVE$("abacadabra", ANY "bac") |