Thanks Sergey this was just the tip I needed.
I had spent a lot of time creating PROCEDURES that used the KEYBOARD '{CTRL+C}' and KEYBOARD '{CTRL+V}' commands along with the _cliptext = ALLTRIM(_cliptext) code and had been somewhat successful. But, when I tried assigning the code via the ON KEY LABEL to both of the 'CTRL+C' & 'CTRL+V' keys, I was running into recursive or similar errors. With your tip, I just made a change to use it in the "cut" operation and I was also delighted to find that I could assign the code directly to the CTRL+C key combinaton without having a recrusive ("crash") problem. Now, the CTRL+C key works exactly the way I wanted it to (timming all trailing spaces) and I'm able to paste the trimmed data into the VFP or any other application.
Thanks again!
ON KEY LABEL CTRL+C DO Trim_ClipText
SYS(1500, "_MED_COPY", "_MEDIT")
_CLIPTEXT = ALLTRIM(_CLIPTEXT)
>You can create new shortcut using ON KEY LABEL
ON KEY LABEL CTRL+K DO InsertTrimmed
_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.