Simple Split Function for VB5
Version Compatibility: Visual Basic 6, Visual Basic 5
Set splitChar parameter to the delimiter you want and str1 is the string you want to split; intPos is the position of the word in the string. The indexing is 0 based (or 1-based if you have Option Base 1 set).
Example: MsgBox Split(",", "This,is,a,test", 2) ' displays a
Note: There is another implementation of split for VB5 at http://www.freevbcode.com/ShowCode.Asp?ID=275.
Instructions: Copy the declarations and code below and paste directly into your VB project.