Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to restore the DEBUGOUT accurately?
Message
From
21/01/2009 14:35:34
 
 
To
20/01/2009 18:58:03
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01375106
Message ID:
01376008
Views:
9
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform