Count the Number of Occurrences of a Character Sequence in a String

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
See code's comments for usage.

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

Declarations:

Code: