Being there at all means it could be copied into the clipboard if necessary, and that visibly rather than just background assignment of _cliptext = ....
>Yes, only executed lines persist in the Command window.
>
>For a discussion with Matt (outside of UT) I understood that his interest was in using the command window for capturing other information that could be viewed and edited -- such as file structure list, for instance.
>
>>In order to persist anything entered into command window, you have to execute it
>>
>>SET LIBRARY TO FoxTools ADDITIVE
>>lcCrLf = CHR(13)+CHR(10)
>>
>>ACTIVATE WINDOW Command
>>
>>lnHandle = _WonTop()
>>
>>lcInserttext = [SELECT * FROM Temp;] + lcCrLf + [WHERE Something = 2] + lcCrLf
>>
>>= _EdInsert(lnHandle, lcInserttext, LEN(lcInserttext))
>>KEYBOARD(CHR(13))
>>
>>
>>>Nice trick.
>>>
>>>Too bad it all disappears the next time you press Enter in the command window.
>>>
>>>