Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Key Label?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00050292
Message ID:
00050559
Vues:
36
Hi Paul,

Here's what I've done in a similar situation:

1. set the form's keypreview property to .t.
2. in form's keypress method check that keycode= 4 and that the thisform.activecontrol.name= .
3. (here I'm less sure, but you might try it) thisform.activecontrole.value= thisform.activecontrol.value+' '+dtoc(date()).

HTH,

Marc


>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

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform