Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Imput Mask = 99:99!!
Message
De
03/09/1998 11:22:32
 
 
À
03/09/1998 11:05:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00132790
Message ID:
00132808
Vues:
13
>>I want to use a ch6 field to represent a time value.
>>I would like to use the imputmask of 99:99!!.
>>for example 12:45PM. I want to force the !! to
>>be either AM or PM. any ideas? thanks :)
>Rob,
>Keypress, ,nteractivechange ?
*keypress
>if this.selstart = 6
>   nodefault
>   if inlist(nKeyCode,asc("A"),asc("a"),asc("P"),asc("p"))
>      This.value = this.value + upper(chr(nKeyCode))+"M"
>   endif
>endif
Hope works. Not tested.
>Cetin
----------
Good morning Cetin and thanks for your reply,
Lets talk about your code:

if this.selstart = 6 && is selstart meanig the time field? and the AM/PM
would be on the 5th and 6th positions of the field. Not sure how you
are testing for both positions.

nodefault && why are you using this?


if inlist(nKeyCode,asc("A"),asc("a"),asc("P"),asc("p"))
This.value = this.value + upper(chr(nKeyCode))+"M"
endif
endif
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform