Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27235

VS 2012 Instr method

$
0
0
The instr method can be used to find the first occurrence of a string. Is it possible to find the second occurrence of a string?
For example:

Code:

Private Sub FormListOfScheduleLists_Load(sender As Object, e As EventArgs) Handles MyBase.Load
How is the best way to find the position of the second " ". The empty string between the "Sub" and the "FormListOfScheduleLists_Load". I can split the string using the " " as a parameter, but is there a way to do this using the instr method, or equivalent?

Viewing all articles
Browse latest Browse all 27235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>