VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Use a single line of API call to check if a given character is ALPHA or ALPHANUMERIC.

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


Rate Use a single line of API call to check if a given character is ALPHA or ALPHANUMERIC.



    CharacterToTest = "1" 
    Result1 = IsCharAlpha(Asc(CharacterToTest))
    Result2 = IsCharAlphaNumeric(Asc(CharacterToTest))
End Sub

Download this snippet    Add to My Saved Code

Use a single line of API call to check if a given character is ALPHA or ALPHANUMERIC. Comments

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..

Post your comment

Subject:
Message:
0/1000 characters