Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy & Paste
Message
 
To
28/04/2000 09:46:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00364439
Message ID:
00364453
Views:
30
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform