Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy selected text to clipboard?
Message
De
14/12/2007 07:59:17
 
 
À
13/12/2007 14:11:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01275481
Message ID:
01275814
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform