Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Write to the Command Window?
Message
De
07/05/2013 08:47:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01572796
Message ID:
01572859
Vues:
65
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.
>>
>>
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform