Menu

#221 new command Replace

open
v1ctor
compiler (117)
2012-10-09
2010-03-11
Pete Fulko
No

Hi,
I am interested about adding new command for Freebasic like syntax of Powerbasic for MSDOS, fe.

REPLACE substring1$ WITH string1$ IN mainstring1$

It will replace all substrings with string in main string.The same result as replacing string with another in all the document in general text editor.
Fe., replace " fogo" with "Bota" in "Botafogo" changes mainstring "Botafogo" to "BotaBota" or
replace "444" with "44" in "tor44444" changes mainstring "tor44444" to "tor44"

In existing freebasic commnads I didnt find this action, but it is very handy for work.

Thanks Pete

Discussion


Log in to post a comment.

MongoDB Logo MongoDB