Navigation:  thinBasic Modules > Core > String handling >

PATCH$

Previous pageReturn to chapter overviewNext page

 

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

 

GRAB$

 

Examples