substituting_20characters_20in_20a_20string
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
substituting_20characters_20in_20a_20string [2018/03/31 13:19] – external edit 127.0.0.1 | substituting_20characters_20in_20a_20string [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
//by Richard Russell, August 2011//\\ \\ If you want to substitute one character for another in a string (for example you want to change every colon ' | //by Richard Russell, August 2011//\\ \\ If you want to substitute one character for another in a string (for example you want to change every colon ' | ||
+ | <code bb4w> | ||
REPEAT | REPEAT | ||
i% = INSTR(A$,":" | i% = INSTR(A$,":" | ||
IF i% MID$(A$, | IF i% MID$(A$, | ||
UNTIL i%=0 | UNTIL i%=0 | ||
+ | </ | ||
This is particularly efficient in the typical case when not many characters need to be substituted. | This is particularly efficient in the typical case when not many characters need to be substituted. |
substituting_20characters_20in_20a_20string.1522502385.txt.gz · Last modified: 2024/01/05 00:16 (external edit)