>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