REPLACE$
|
Syntax: |
REPLACE$(<Source String>,<String To
Be Replaced>,<Replace By>,<Count>)
|
||||||||
|
|
|
||||||||
|
Meaning: |
Replaces substrings in a string. REPLACE$ returns a string that results from
the characters <String to Be Replaced> occurring in <Source
String> being replaced by <Replace By>. The parameter <Count> specifies how
many character strings are replaced. If <Count> <= 0, all occurring strings
are replaced, otherwise only the number defined. |
||||||||
|
Parameter: |
|
||||||||
|
Sample: |
H$ =
"HELLO" H2$ = REPLACE$(H$,"L","XY",0) /*
H2$ = "HEXYXYO" H3$ = REPLACE$(H$,"L","l",1) /* H3$ = "HElLO" |
||||||||
|
See also: |
|