Based on How To Add HTML Code to the Clipboard by Using Visual C++
Based on How To Add Custom Table to the Clipboard to be Pasted into Word
In VFP 9.0 PRG contents will be copied to clipboard in RTF format as well, if there's no 'X' in the _Vfp.EditorOptions.
for more info.
MSDN: Windows Clipboard API
The code uses Editor functions from Foxtools.fll. See George Tasker's Extended Foxtools Help Download #9333 on UT for more info.