kytschBASIC

Put down that phone!
Please view me on real computer.

REPLACE
SEARCH, FIND, REPLACE

This function will replace part of a string with another.

Example

PRINT REPLACE("Hi World!", "Hi", "Hello")

LINE BREAK



REM You can still assign the standard attributes of the PRINT command.

PRINT REPLACE("Hi World!", "Hi", "Hello"), "basic"

LINE BREAK



DEF string$=REPLACE("Hi World!", "Hi", "Hello")

PRINT string$

Output

Hello World!
Hello World!

See also