The Wayback Machine - https://web.archive.org/web/20101122092645/http://www.codeguru.com:80/vb/gen/vb_misc/text/

    Text

    "Search and Replace" in Visual Basic Applications

    Implementing "Search and Replace" functionality in your VB application is very easy. The straightforward and to-the-point algorithm that I developed for this will make it easier for you to understand it.

    String Function - CountWords

    Learn how to code a routine to return the number of words in a string (including strings containing CR/LF codes). (Added: 4-Apr-2000)

    VB Syntax Coloring

    Learn about another method to color code VB Syntax in an RTF control. (Added: 9-Jun-1999)

    Formatting Strings

    Learn how to left, right, or center text within a specified length. EG. format "Hello" right justified within a length of 10 characters. " Hello". (Added: 9-Jun-1999)

    Removing Characters and Strings from a String (VB6)

    Learn 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. (Added: 12-May-1999)

    String Functions - Library of Routines

    Learn about a BAS file with a powerful collection of routines to handle string parsing / splitting. (Added: 4-Apr-2000)

    Extracting Path / Filename from a String

    Take a Windows compatible path and break it into the filename with extension and without extension, the extension alone, the path, and whether it's a valid file or not. (Added: 9-Jun-1999)

    Standard Name Formatting Routine

    Discover a standard routine for formatting a name in a string'—useful for formatting fields from databases (such as ForeName, Surname, Initial etc). (Added: 12-May-1999)

    Creating Gradient Text

    Learn interesting methods of producing gradient filled text within a picturebox. (Added: 20-Jan-2000)

    Improved Mid$ Statement

    Learn how to wrap the VB Mid$ statement into an error free piece of code. Negative values are automatically checked and handled. (Added: 12-May-1999)

    Insert Strings into a String

    Learn how to insert strings inside an existing string with different alignments. Good for building fixed page headers on reports. (Added: 27-Jul-1999)

    Improved Trim$ Statement

    Learn how to wrap the VB Trim$ statement to trim all the whitespace in a string (or any other character that you want). (Added: 12-May-1999)