Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print to printer instead of screen
Message
From
01/11/2002 06:56:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/11/2002 01:51:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00716878
Message ID:
00717705
Views:
12
>Hi,
>The SET("CONSOLE") return "ON" however SYS(100) return "OFF". I have SET CONSOLE OFF.
>
>Any ideas?
>
>Thank you

Perhaps this text (manual, SET CONSOLE) explains your situation.

"Important An error always sets SET CONSOLE to ON. Use SYS(100) to check the SET CONSOLE setting before the error occurred. For more information, see SYS(100) – Console Setting."

I suggest you explicitly turn SET CONSOLE OFF before using a command which you want to output only to the printer or file. For instance, my output commands frequently look like this:
SET ALTERNATE TO output.txt
SET ALTERNATE ON
SET CONSOLE OFF
? "Several output commands would usually replace this single line"
SET ALTERNATE OFF
SET ALTERANTE TO
SET CONSOLE ON
You could save the set("console") setting, but I assume, in my programs, that the "normal" setting is ON, so I temporarily turn it OFF and then ON again.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform