Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Write to the Command Window?
Message
From
07/05/2013 08:49:23
 
 
To
07/05/2013 08:47:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01572796
Message ID:
01572860
Views:
60
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.
>>>
>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform