Hi Nadya,
>>>>
> You know, I was thinking about your idea to insert file description using macro. It's not very easy to implement, at least for me. But it would be great, if, say, we have description.txt file (may be few of them for different purposes) and have ability to add in the top (or current cursor position) of file (method of class/form) just pressing F7, for example.
>
>So, my suggestion to you (if, of course, it's not too much :), is to put such program with explanation in Files section.
>
>How does it sound?
It isn't terribly hard to do. All you have to do is assign the _CLIPTEXT system variable the string you want to insert, then use the KEYBOARD command to paste in. Here's an example:
#DEFINE CF_CR CHR(13)
_CLIPTEXT = "This is line 1." + CF_CR
_CLIPTEXT = _CLIPTEXT + "This is line 2." + CF_CR
_CLIPTEXT = _CLIPTEXT + "This is line 3."
KEYBOARD "{CTRL+V}" PLAIN
ON KEY LABEL F5 DO DEMOPASTE.PRG
That's all there is to it. When you press F5 you'll get
This is line 1.
This is line 2.
This is line 3.
Pasted into the current editing window. Of course, the above doesn't check to make sure that there's one active, but since this isn't an end-user tool, I don't worry about it< g >.
George
Ubi caritas et amor, deus ibi est