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

VS 2010 [Fixed] SUPER EASY simple help me please with split

$
0
0
Hi guys!
I am tottally going brain dead.. :P

I type:
Code:

System.setMouse(123, 456);
Then it will call this:

Code:

If ln.Contains("System.setMouse(") Then
                Dim startquote As Integer = ln.IndexOf("(") + 1
                Dim endquote As Integer = ln.LastIndexOf(")")
                Dim w As String = ln.Substring(startquote, endquote - startquote)
            End If

so w would be equal to:
Code:

123, 456
Now how do I split this by the comma and make it an array of strings like I would like them to be seperate like:
string1 = "123"
and
string2 = "456"


Please reply on helping me thanks!
I tried using the "split" function but unfortunately I am not understanding it too well :/

Viewing all articles
Browse latest Browse all 27329

Trending Articles



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