Sub Globals
Private txtISBN As EditText
End Sub
Sub txtISBN_TextChanged (Old As String, New As String)
If New.Length > 13 Then
txtISBN.Text = New.SubString2(0,13)
txtISBN.SelectionStart = 13
End If
End Sub
Sub txtISBN_EnterPressed
Dim myISBN As String = txtISBN.Text
txtISBN.Text = ""
.... other code
End Sub