Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Imput Mask = 99:99!!
Message
De
03/09/1998 13:51:47
 
 
À
03/09/1998 13:38:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00132790
Message ID:
00132890
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform