UPDATE: 6-18-2003 -- Examples Improved. Acknowledgement follows in next post
Greetings --
When I went from MS-Qbasic to PowerBASIC DOS, I - like many a programmer before and after - was introduced to many new features and improvements.
One of those improvements was a built-in PowerBASIC function called REMOVE$. This one strips out any specified character from a given string.
For example, if a string called HX$ contains this "R o-bocop7", and you wanted to take out the space as well as the "-" and the "7", then you would have this line ..
HX$=Remove$(HX$, ANY "-7 ") which produces the result "Robocop"
Suppose you wanted to remove a character that normally couldn't be shown in the ANY part of the Remove$ function - say the quote " mark. Easy - you would have this line--
HX$=Remove$(HX$, any chr$(34))
-- and similar lines for other such characters.
------------------
Thanx-A-Lot and Enjoy, Frank --My PB
[This message has been edited by Frank Ferrell (edited September 10, 2004).]
Greetings --
When I went from MS-Qbasic to PowerBASIC DOS, I - like many a programmer before and after - was introduced to many new features and improvements.
One of those improvements was a built-in PowerBASIC function called REMOVE$. This one strips out any specified character from a given string.
For example, if a string called HX$ contains this "R o-bocop7", and you wanted to take out the space as well as the "-" and the "7", then you would have this line ..
HX$=Remove$(HX$, ANY "-7 ") which produces the result "Robocop"
Suppose you wanted to remove a character that normally couldn't be shown in the ANY part of the Remove$ function - say the quote " mark. Easy - you would have this line--
HX$=Remove$(HX$, any chr$(34))
-- and similar lines for other such characters.
------------------
Thanx-A-Lot and Enjoy, Frank --My PB
[This message has been edited by Frank Ferrell (edited September 10, 2004).]
Comment