Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Redirect question mark displays to file
Message
De
28/08/2007 13:06:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01250737
Message ID:
01250952
Vues:
42
>>>>Just can't remember how to do this. Set printer? Can't find the right clauses to work though.
>>>>
>>>>
>>>>? "Send this to the 1st line of a file."
>>>>? "Send this to the 2nd line of a file."
>>>>
>>>
>>>I didn't try, but AFAIK this would also work
>>>
>>>??? "First line"
>>>??? "second line"
>>
>>Is that to a file or to the printer?
>
>To the printer. ??? sends a string to the printer. That's why an easy way to print a text file is to use
>
>??? filetostr('myFile.txt')
>
>for your original question you may also check SET DEVICE and SET ALTERNATE commands in Help.

And just for Jay's information, the differences between these:

Set Device redirects the output from @say statements

Set Alternate redirects whatever is sent to the console - not only by ? ?? commands, but also any List, Display etc (which is pretty much the same as Set Print does). It will also add an EOF (chr(26), 0h1A) character to the end of file when it's closed (set alternate to ). The resulting text file may not be readable beyond that point by some software - some guys out there still take the eof marker seriously.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform