Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print to printer instead of screen
Message
De
01/11/2002 06:56:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
01/11/2002 01:51:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00716878
Message ID:
00717705
Vues:
13
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform