String Manipulation Functions
Version Compatibility: Visual Basic 6
The following code is a group of functions for string manipulation. The functions and their purpose are as follows. 'StartsWith' checks whether 'sSource' starts with 'sText'. 'EndsWith' checks whether 'string1' ends with 'string2'. 'SubstringBefore' returns everything before 'string2' in 'string1'. 'SubstringAfter' returns everything after 'string2' in 'string1'. 'GetSubString' returns a string containing everything from 'start' to 'end' ('start' and 'end' included) from 'Text' and trims the result.
Instructions: Copy the declarations and code below and paste directly into your VB project.