Code:
Private Sub Command1_Click()
Dim Pos As Integer
Dim Chars, Delimiter As String
Chars = Text1.Text
Delimiter = "|"
Text1.Text = ""
Do While (Pos = InStr(Chars, Delimiter)) <> -1
MsgBox Chars
MsgBox Pos
Text1.Text = Left(Chars, Pos) & vbCrLf
Chars = Left(Chars, Pos)
Loop
End Sub
Nach diesem Code bekomme ich erst eine MsgBox
mit "hallo|" und dann eine mit 0.
Wie kann das sein?