by James Olarte (8 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 29th May 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Determines if the Character is Alpha.
API Declarations
'Call this function under Keypress, Keyup or Keydown Events.
On Error GoTo ErrorHandler:
If CharCode > 96 And CharCode < 123 Then
CharacterIsAlpha = True
ElseIf CharCode > 64 And CharCode < 91 Then
CharacterIsAlpha = True
Else
CharacterIsAlpha = False
End If
Exit Function
ErrorHandler: MsgBox "Error in CharacterIsAlpha: " & Err.Description, vbCritical + vbOKOnly, "Error " & Err.Number & " - " & Err.Source
End Function