Article ID: 108824 - View products that this article applies to.
This article was previously published under Q108824
In FoxPro for Windows, the system memory variable _CLIPTEXT provides access to the Windows system Clipboard for transferring text data (not graphics).
In FoxPro for MS-DOS, copying or cutting text places that text in an internal clipboard used only by FoxPro for MS-DOS. In Windows-based applications, including FoxPro for Windows, copying or cutting an item places that item in the Windows Clipboard, which is available to other Windows applications.
To view the contents of the Windows Clipboard, open the Main group in Program Manager, and in Windows 3.0 and 3.1, start Clipboard or in Windows for Workgroups 3.1 and 3.11, start Clipbook Viewer (which contains Clipboard). Note, however, that Clipboard does not need to be running for data to be stored in it.
NOTE: You can pass only text data using _CLIPTEXT, although the Windows Clipboard can store graphics as well as text.
Example of Copying Text from FoxPro to Notepad
Text from FoxPro
Example of Copying Text From Memo Field to Clipboard
USE <table_name> && Open a database that contains a memo field
SCATTER MEMVAR MEMO
_CLIPTEXT=m.<memo_field_name> && Copy memo contents to clipboard
Example of Copying Text from Notepad to FoxPro
Text from Notepad(c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Kevin Zollman, Microsoft Corporation.
Article ID: 108824 - Last Review: December 1, 2003 - Revision: 2.1