Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Date hot key in memo edit object
Message
From
22/06/1998 14:54:31
 
 
To
22/06/1998 13:50:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00110599
Message ID:
00110650
Views:
16
>Hmmm....I just tried this with:
>
>ON KEY LABEL ALT+D KEYBOARD DTOC(DATE()) in the Init of the form. When I pressed ALT+D in an EditBox it worked fine....
>
>
>
>>I have an application that requires the ability to insert today's date into a memo field edit object by the use of a hot key.
>>
>>The end user is editing a memo field using an edit object on a form. During the session he wishes to insert today's date by hitting ALT+D. I tried to use the ON KEY LABEL ALT+D syntax and stuffed the keyboard with today's date but nothing happens. The stuff program gets executed, the date gets setup correctly, it accepts the date to the KEYBOARD command but nothing appears in the memo/edit object.
>>
>>Any help is appreciated
>>
>>Thanks
>>
>>
>>Terry
You were absolutely right. I was trying to pack the keyboard using an external prg - ON KEY LABEL DO STUFFDATE. Obviously I had a scope problem. Put your code in the gotfocus event and it worked fine.

Thanks

Terry
It is impossible to make programs idiot proof. Idiots are too cleaver.

MCP( Tcp/Ip )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform