Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET PRINTER TO test.txt ADDITIVE not working
Message
De
14/03/2002 15:39:09
 
 
À
14/03/2002 15:09:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00632928
Message ID:
00633017
Vues:
19
That works, but the printer ejects a blank page even when sent to a file. Plus we have literally hundreds of prgs coded with @...say that worked in FPD26 of course, but now the additive keyword does not work with VFP7 and using @...say.

Tracy
*The below should be the first two lines of test.txt
set PRINTER TO test.txt
set DEVICE TO printer
set print on
? 'this is test1.'
? 'this is the 2nd line from the first printing.'
set DEVICE TO screen
set PRINTER to
set print off
*The following should be appended to the file test.txt
*but it overwrites it instead.
set PRINTER TO test.txt additive
set DEVICE TO printer
set print on
? 'this is test2.'
? 'this is the 4th line from the 2nd printing.'
set DEVICE TO screen
set PRINTER to
set print off
MODIFY COMMAND test.txt
>>IS the additive keyword not accepted in VFP7? It does not work. No matter what, when printing to a file, it overwrites the information. In the below code, the 2nd printing overwrites the first instead of appending it as the HELP states is should. Any ideas?
>>
>>
>>*The below should be the first two lines of test.txt
>>set PRINTER TO test.txt
>>set DEVICE TO printer
>>@1,0 say 'this is test1.'
>>@2,0 say 'this is the 2nd line from the first printing.'
>>set DEVICE TO screen
>>set PRINTER to
>>
>>*The following should be appended to the file test.txt
>>*but it overwrites it instead.
>>set PRINTER TO test.txt additive
>>set DEVICE TO printer
>>@3,0 say 'this is test2.'
>>@4,0 say 'this is the 4th line from the 2nd printing.'
>>set DEVICE TO screen
>>set PRINTER to
>>
>
>What happens if you replace each "@...SAY" with "?" ?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform