>>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.
>
>Just to add to what others said, I've done lots of stuffing in memo fields in FPD, and on slower machines it used to misbehave, by either being slow, or inserting at wrong places; maybe it overloaded the keyboard buffer sometimes, who knows. This workaround works fine, no matter how long the text you're stuffing may be:
>
>_cliptext="[any amount of text comes here]"
>keyboard "{ctrl+v}" plain
>
>This assumes that Paste option in the Edit menu is available. If it's not, there's probably some _ed...paste() function in the FOX API, but I never needed it.
Thanks Dragan
I'll keep that in mind. I think I can use that idea in other places.
Terry
It is impossible to make programs idiot proof. Idiots are too cleaver.
MCP( Tcp/Ip )