For example I have this form:
As you can see I have Barcode textbox, and 6 more textboxes. What I need is a code that will parse my barcode from the textbox and fill in the remaining fields. The parenthesis ie ()
, and the numbers inside it, have to be deleted.
Here is example of my barcode
(1)CODE1(3)NAME(4)SURNAME(8)CODE2(10)CODE3(12)CODE4
For now I have this code:
Private Sub Barcode_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Barcode.Leave
Dim Duzina As String = Me.Barcode.Text.Length
Dim I As Integer = 0
Dim Slog As String = ""
Dim Rec As String = Me.Barcode.Text
For I = 4 To Duzina
If Rec.Substring(I, 1) = "(" Then
Me.Surname.Text = Slog
Exit For
End If
Slog = Slog + Rec.Substring(I, 0)
Next
End Sub
So when the barcode loads into the first textbox, it should fill up all the other textboxes.