Get The Substring of a String Between Two Given Substrings

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
MacLeod.broad

Version Compatibility: Visual Basic 6, Visual Basic.NET

More information:
This function returns the substring found between to given strings. Usage: midReturn("something", "someone", "If you find something it probably belongs to someone or maybe not"). This would return "it probably belongs to."

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

Declarations:

Code: