Programmatically Copying Text to/from Windows ClipboardID: Q108824 2.50 2.50a 2.50b 3.00 WINDOWS kbprg kbhowto The information in this article applies to:
SUMMARYIn FoxPro for Windows, the system memory variable _CLIPTEXT provides access to the Windows system Clipboard for transferring text data (not graphics).
MORE INFORMATIONIn 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 Notepad1. Start FoxPro for Windows. 2. Type the following command in the Command window:
3. Minimize or quit FoxPro.
4. Start the Windows Notepad program (usually found in the Accessories 5. From the Edit menu, choose Paste.
Notepad now contains the following line:
Example of Copying Text From Memo Field to Clipboard
Example of Copying Text from Notepad to FoxPro1. Start Notepad. 2. Type the following line in Notepad:
3. Select the line of text (so that it is highlighted).
4. From the Edit menu, choose Copy. 5. Minimize or quit Notepad. 6. Start FoxPro for Windows. 7. Type the following command in the Command window:
The following is displayed on the FoxPro Desktop:
Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a 2.50b
clipbrd.exe
KBCategory: kbprg kbhowto
KBSubcategory: FxtoolGeneral
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |