Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Imput Mask = 99:99!!
Message
From
03/09/1998 13:51:47
 
 
To
03/09/1998 13:38:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00132790
Message ID:
00132890
Views:
14
>Hi Robert --
>
>The following code expands on the premise a bit....this also filters bad time values. I've had fun with this thread. ;-)
>
>KeyPress event code:
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>LOCAL lNoDef
>lNoDef=.F.
>DO CASE
>CASE THIS.SelStart=0
>   IF !(CHR(nKeyCode) $ "01")
>      lNoDef=.T.
>   ENDIF
>CASE THIS.SelStart=1 OR THIS.SelStart=4
>   IF !(CHR(nKeyCode) $ "0123456789")
>      lNoDef=.T.
>   ENDIF
>CASE THIS.SelStart=3
>   IF !(CHR(nKeyCode) $ "012345")
>      lNoDef=.T.
>   ENDIF
>CASE THIS.SelStart=6
>   IF nKeyCode # 65 AND nKeyCode # 80
>      lNoDef=.T.
>   ENDIF
>ENDCASE
>IF lNoDef
>   NODEFAULT
>ENDIF
>
-------
Hi John and I can not thank you enough for helping me with this.
I am going to try it and i will let you know how it turns out..
thanks again.. :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform