Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CTRL+C, CTRL+V, _Cliptext and Macros ?
Message
 
 
À
04/08/2007 13:12:58
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 NT
Database:
MS SQL Server
Divers
Thread ID:
01245958
Message ID:
01245977
Vues:
24
You can create new shortcut using ON KEY LABEL
ON KEY LABEL CTRL+K DO InsertTrimmed

* InsertTrimmed.prg
_CLIPTEXT = ALLTRIM(_CLIPTEXT)
SYS(1500, "_MED_PASTE", "_MEDIT")
>I constantly use CTRL+C to copy the contents of a field and then use CTRL+V to paste the data somewhere else. The CTRL+C copies the entire field including all trailing blank spaces. I know that within a program _cliptext = ALLTRIM(_cliptext) will remove both preceding and/or trailing spaces.
>
>I want to accomplish this same thing from the interactive IDE any time I "cut & paste" using CTRL+C and CTRL+V. I've tried assigning this code to a macro but haven't been successful, yet. I know this has got to be easier than I'm trying to make it.
>
>Any help or reference to a utility that does the same thing would be greatly appreciated.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform