Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Verification Command For VB6, Verification Issue

views
     
SincerePrayer
post Jan 22 2006, 11:25 AM

love to pray
Group Icon
Elite
1,120 posts

Joined: Jun 2005
jackyap84,


You may want to read the code below
CODE
Private Sub Text1_KeyPress(KeyAscii As Integer)
   ' check for the lower case
   If ((KeyAscii >= 97 And KeyAscii <= 122) And KeyAscii <> 96) Then
       ' OK
       Exit Sub
       
   ' check for upper case
   ElseIf (KeyAscii >= 65 And KeyAscii <= 90) Then
       ' ok
       Exit Sub
   End If
   
   
   ' all not ok
   KeyAscii = 0
End Sub



Happy Coding smile.gif

 

Change to:
| Lo-Fi Version
0.0133sec    0.41    6 queries    GZIP Disabled
Time is now: 24th December 2025 - 01:02 AM