Try this, it removes the formatting for me:
on key label ctrl+c ExecScript("keyb '{ctrl+c}' plain"+Chr(13)+"doevents"+Chr(13)+"doevents"+Chr(13)+"_cliptext = _cliptext")
Note that if you try to copy non-text, like a control, and paste it into the designer, it will fail with the above code. It may be better to use something besides ctrl+c for the OKL.
>Rick,
>
>It is nice that the feature is there, I just want a flag to be able to turn it on/off. 99% of the time I do not want colored code in the clipboard especially since it doesn't respect my backcolor choice as well as the code colors.
>
>>Amen to that... this really pisses me off to. It be easy to fix with a special option like Copy Special...
>>
>>Really that's not VFP's problem but Outlook Express's problem which is using the ever so lame HTML Edit control for input editing. Really OE needs a Paste Special... option.
>>
>>The same thing BTW happens with VS.NET and I've always hated this.
>>
>>OTOH, it is nice to be able to paste code into Word and get the Syntax highlighting preserved for articles etc.
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.