Parse Words From String (Multiple Delimiters Allowed)

Category:
String Manipulation
Type:
Snippets
Difficulty:
Intermediate
Author:
Dave Alexander

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
In transaction processing, I often must accept a single string with multiple words, parameters, requested item ID's to work on, etc. This little function has proven quite useful to me.

It takes a string and breaks it into an array of individual words, as delimited by a number of characters, including linebreaks, say from a text file.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: