Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Key Label?
Message
De
17/09/1997 09:25:54
Dave Emerson
Dc Emerson Consult8Ng, Inc
Destin, Floride, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00050292
Message ID:
00050377
Vues:
42
>Hello,
>
>I have an EditBox to key in notes for a customer. I would like to automatically insert todays date when the customer hits CTRL+D or whatever. I have played around with a few things to no avail like on key label in the keypress event of the editbox.
>
>Any ideas?
>
>Paul

Paul,

The keypress event seems to work for me. I have the following in a text box keypress event:

LPARAMETERS nKeyCode, nShiftAltCtrl
if nkeycode = 4 && 4 is key code for CTRL-D
this.value = date()
this.refresh()
endif

However in order for it to work, I needed to have the form be modal.

HTH,

Dave
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform