Thanks, AirCon! Wow!
Just last night I realized 4 things:
* Well, yes, the KEYBOARD '{CTRL+C}' is not working consistently with VFP Command Editor - once in a while I got a correct result, but more often I didn't, and I just couldn't figure out, what was in common and what was different in all those cases.
* The contents of the keyboard was placed in the keyboard when DoEvents was issued right before KEYBOARD '{CTRL+C}', but for some reson it was bypassing the _ClipText variable, and I might need to look for ways to either force it to _ClipText, or to get the contents of the clipboard without using the _ClipText.
* The contents of the Command Window is saved in a file in VFP6, too, and this file is located in the temporary directory, although information there doesn't look as good as if it is saved in program file. I was actually considering goind down that route, but there was still a task of figuring out programmatically which file to pick. I am not sure, what 04TO0008.TMP or I6D8009W.TMP exactly mean (system date+time, I guess?), and I usually have 2 instances of VFP open every day, and one stays open for up to 5 days, for long-term projects going on, another can start and close every day or several times a day, for short user data requests or to try something out, like a Tek-Tip, and it would be hard to figure out which of the .tmp files I have to open.
* I felt that I was probably going in the wrong direction, but was not sure which direction is right.
You've done it, it works all the time (actually, both of your pieces are!) and it's short and nice. Thanks! Now, I will have to do some reading on FoxTools, to know better what's out there before I need it again.
Stella.