I have an App to test some methods.
In my "TestApp" I have 4 buttons: btnTekst, btnSplit, btnMid and btnUbound.
I have also 4 Textboxes: txtTekst, txtSplit, txtMid and txtUbound.
First thing I want to do is the whole tekst showing in the first Textbox. This is easy to do. Second thing is to split the tekst like this:
Public Class frmTestApp
Private Sub frmTestApp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MyBase.Load
End Sub
Private Sub btnTekst_Click(sender As System.Object, e As System.EventArgs) _
Handles btnTekst.Click
txtTekst.Text = "ADR;WORK;PREF:;;Straat 01;Plaats;;Postcode"
Dim txt As String = txtTekst.Text
Dim newTxtStrings As New List(Of String)
End Sub
Private Sub btnSplit_Click(sender As System.Object, e As System.EventArgs) _
Handles btnSplit.Click
End Sub
Private Sub btnMid_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles btnMid.Click
txtMid.Text = txtTekst.Text
End Sub
Private Sub btnUbound_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles btnUbound.Click
txtUbound.Text = txtTekst.Text
End Sub
End Class
You she my code above. I want to split the text bij ":" and ";"..I have asked this earlier, but it's still not working as it should be.
If this is split, I want to Mid in the third textbox.
After that I want to use Ubound, but mabey I don't need the last function.
Can everyone help me out?
thanks!