This is another way of passing information between VFP applications. Normally such data exchange is based on a table or tables, which can be accessed by participating applications. Table names must be available to the applications either through global objects, or they are hard-coded.
On initialization the TClipboard object registers two Clipboard formats: VFPTablePlan and VFPTableData.
The sender application uses the CopyToClip method to copy records from the active alias to the Windows Clipboard. The structure of the alias is copied in the VFPTablePlan format, which is a regular SQL CREATE expression. The records are copied in the VFPTableData format, which is a tab delimited buffer.
The recipient can use either AppendFromClip or NewFromClip methods. The AppendFromClip appends records from the Clipboard to active alias (if any). The NewFromClip creates a new cursor with the structure and records retrieved from the Clipboard.
Here is another idea of a similar class, which can convert records to the HTML code and place this data on the Windows Clipboard in the HTML Clipboard Format (CF_HTML). Immediately after that this data is available to all applications, which understand CF_HTML format.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.