VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

L/UCaseKeyPress

Edmundo T. Mendiola  (2 Submissions)   String Manipulation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Use these functions in KeyPress events to format user entries as entry is typed. UCaseKeyPress() converts key pressed to uppercase while LCaseKeyPress() converts key pressed to lowercase.

Inputs
KeyAscii As Integer The ASCII value of key pressed; parameter from KeyPress event.

Assumes
These two functions are easily re-usable in any projects where form controls with KeyPress events exists. You may also use this function in situations where the equivalent upper or lower case ASCII value of a character is to be evaluated.

Returns
Returns the new value of KeyASCII to be returned by the KeyPress event.

Rate L/UCaseKeyPress (4(4 Vote))
L/UCaseKeyPress.bas

L/UCaseKeyPress Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters