Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CTRL+C, CTRL+V, _Cliptext and Macros ?
Message
 
 
To
04/08/2007 13:12:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01245958
Message ID:
01245977
Views:
23
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform