Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy & Paste
Message
 
À
28/04/2000 09:46:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00364439
Message ID:
00364453
Vues:
29
>Hello All,
>
>I'm trying to create code to allow my client to copy data from a textbox on one form to a textbox on another form by clicking on the Copy/Paste icons provided.
>
>I believe that KeyBoard '{13}' might accomplish the Paste but how to copy the field to the clipboard? Any how would be appreciated.
>
>Regards,
>
>Paige

Paige, try

ON KEY LABEL "Ctrl+A" SYS(1500, '_MED_SLCTA', '_MEDIT')
ON KEY LABEL "Ctrl+C" SYS(1500, '_MED_COPY', '_MEDIT')
ON KEY LABEL "Ctrl+X" SYS(1500, '_MED_CUT', '_MEDIT')
ON KEY LABEL "Ctrl+V" SYS(1500, '_MED_PASTE', '_MEDIT')

in your start program.

This provides full Copy/Paste functionality even if you have no menu available.
Then you can issue KEYBOARD '{Ctrl+C}', etc. from your buttons.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform