<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > String functions > PATCH$ |
Description
Substitute a string delimited by StrDelim_1 and and StrDelim_2 strings.
Returns the new patched string.
Syntax
s = PATCH$(StringExpression, StrDelim_1, StrDelim_2, Index, NewString)
Returns
String
Parameters
Name |
Type |
Optional |
Meaning |
StringExpression |
String |
No |
The string to parse. |
StrDelim_1 |
String |
No |
First delimiter string |
StrDelim_2 |
String |
No |
Second delimiter string |
Index |
Numeric |
No |
The delimited field number to return. If omitted, 1 is assumed. |
NewString |
String |
No |
The string to be used for substitution |
Remarks
Restrictions
See also
Examples