Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Date hot key in memo edit object
Message
De
22/06/1998 14:54:31
 
 
À
22/06/1998 13:50:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00110599
Message ID:
00110650
Vues:
17
>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 )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform