by Roderick Thompson (12 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 1st March 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Use a single line of API call to check if a given character is ALPHA or ALPHANUMERIC.
API Declarations
Declare Function IsCharAlphaNumeric Lib "user32" Alias "IsCharAlphaNumericA" (ByVal cChar As Byte) As Boolean
CharacterToTest = "1"
Result1 = IsCharAlpha(Asc(CharacterToTest))
Result2 = IsCharAlphaNumeric(Asc(CharacterToTest))
End Sub
No comments have been posted about Use a single line of API call to check if a given character is ALPHA or ALPHANUMERIC.. Why not be the first to post a comment about Use a single line of API call to check if a given character is ALPHA or ALPHANUMERIC..