*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 >>>