Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Key Label?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00050292
Message ID:
00050559
Views:
28
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform