Delete (substring)

From BR Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

In order to delete characters from a BR string, simply replace the string you want to remove with an empty string as follows:

00010 dim a$*255
00020 let a$ = "this will stay, and this will be removed"
00030 let a$(15:inf) = "" ! here inf denotes 'infinity'
00040 print a$

See also Delete (statement) and Delete (command).