Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to copy selected text to clipboard?
Message
From
14/12/2007 07:59:17
 
 
To
13/12/2007 14:11:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01275481
Message ID:
01275814
Views:
17
Hi Albert.

Perhaps KEYBOARD '{CTRL+C}' or SYS(1500, '_MED_COPY', '_MEDIT') would work for you. However:

>I have to clarify: I have not found that the "beautify" app formats code the way I would like so I would like to highlight code in the code editor and fire my own app to format the code. So after highlighting the text, I would like to press a function key to format what I have highlighted.
>
>First step it seems to me is to get the text into a var that I can use so I thought of copying it to the clipboard, then to a var, manipulate it and then put it back by pasting in to the same spot.

Since you want to manipulate text in a VFP editor, you might want to take a look at the _ED* functions in FoxTools.FLL. They were specifically designed to select text, retrieve text, replace text, etc. from code windows.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform