>>I'm trying to execute Windows' cut and paste features programmatically in the Click even of a toolbar button. Using the following code:
>> SYS(1500, "_MED_CUT", "_MSYSMENU")
>>
>>Doesn't seem to quick 'cut' it. Any ideas?
>
>Do you actually have the Edit pad on the system menu for your app?
>
>Can you just manipulate the .activecontrol and the _cliptext variable yourself? After all, a button in a toolbar does NOT get focus, so _screen.activeform.activecontrol is still the one on the form where the user was working.
>
>
>IN the Revolutionary Guide to Visual FoxPro OOP (Wrox Press) there is a great example of writing cut, copy and paste.
You can try this:
_cliptext = sourcevalue
target = _cliptext
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca