不了解这段代码的作用
Dim strAllowedChars As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz() -+ "
If Len(TxtFirstName.Text) = 0 Then
Exit Sub
Else
For i = 0 To Len(TxtFirstName.Text) - 1
If InStr(1, strAllowedChars, TxtFirstName.Text(i)) = 0 Then
MsgBox("Number Detected")
TxtFirstName.Focus()
Exit Sub
End If
Next
End If
不了解代码的实际作用