I seemed to remember that @...SAYs get lost/confused if you change/reset the SET PRINTER... in a way I'm surprised it worked in FPD. Why do you need to do this?
Also BTW it's good programming practice to reverse the order of SETs etc. when restoring settings:
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 print off
set DEVICE TO screen
set PRINTER to
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