Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PRINTER TO test.txt ADDITIVE not working
Message
From
14/03/2002 15:09:09
 
 
To
14/03/2002 14:10:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00632928
Message ID:
00632992
Views:
13
>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 "?" ?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform