Click to See Complete Forum and Search --> : How do I remove any charachter in a string?


December 6th, 1999, 09:01 PM
Could someone show me how to remove any charachter in a line?

Crazy D
December 7th, 1999, 12:29 AM
With VB6, you can use the Replace function. Guess this is daily answered.. anyway, something like this:
MyString = Replace$(MyString, "a", "")

Crazy D :-)
"One ring rules them all"

Chris Eastwood
December 7th, 1999, 02:40 AM
.. or if you're using VB5, you can use this routine :

http://codeguru.developer.com/bbs/wt/showpost.pl?Board=vb&Number=10593&page=1&view=expanded&sb=5&category=All


Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb