Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to restore the DEBUGOUT accurately?
Message
De
21/01/2009 14:35:34
 
 
À
20/01/2009 18:58:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01375106
Message ID:
01376008
Vues:
15
>G'day.
>
>My understanding is that you are trying to restore the setting back so that it is as if it was never turned off. In that case you have to always use the Additive clause. If you don't then anything that your program has written into the log before your routine runs will be destroyed. When you use Set DebugOut or Coverage normally you do have to choose if you want Additive or not, but because what you are trying to do here is restore the setting you must use the Additive option to prevent the data you have already written from being destroyed. As soon as you execute a Set Debugout or Coverage statement without the Additive clause the log file is emptied, which is obviously not what you want if you are trying to make your routine transparent.
>
>Ian Simcock.
>
A restore could mean to SET back to a previously set output file. It does not need to be always between ON and OFF.
My concern is when SET("DEBUGOUT") returns non-blank string, how do I know that SET DEBUGOUT is called with or without ADDITIVE clause?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform