I'm trying to split an inputted string (txtStart.text) into separate integers. The split function works fine for me, but I can't figure out how to store the each part of the array... any ideas? Thanks
This is my current code that I based on an example from MSDN library:
Code:Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGo.Click SplitStringIntoWords() End Sub Private Function SplitStringIntoWords() As Integer Dim strComplete As String = txtStart.Text Dim strWords() As String Dim strSeparators() As Char = {"/"c, "-"c} strWords = strComplete.Split(strSeparators) Dim i As Integer For i = 0 To UBound(strWords) MessageBox.Show(strWords(i)) Next End Function




Reply With Quote
