Removing Characters and Strings from a String (VB6)

Wednesday May 12th 1999 by Konstantin Komissarchik
Share:

This code shows how to wrap the VB6 Replace command to remove any characters from a string, eg. StripOut("abcdefg", "bdf") - This will return a string that had all of its 'b', 'd', and 'f' characters removed.

I am often faced with a problem of a string that needs to have certain characters removed from it. With advent of <b>Replace() </b> function, the problem becomes more manageable. For instance, if you wanted to remove all

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved