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 16:10:06
 
 
À
14/03/2002 15:39:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00632928
Message ID:
00633039
Vues:
19
This sounds silly, but should be easy to try...

what if your second @SAY... test restarts at @01,... It seems to me that additive is for such cases and possibly VFP7 won't have the same problem.

good luck


>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 "?" ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform