Steve,
What exactly are you trying to accomplish here with PRINT, ALTERNATE and the MEMO field?
A few things that pop out:
You shouldn't mix SET PRINTER and SET ALTERNATE use one or the other depending on where you want the current ?/?? output to go.
You have to SET ALTERNATE ON
You have to SET ALTERNATE OFF, SET ALTERNATE TO to close the file you are about to append into the memo.
>My code is something like this:
>
>In the Click procedure of a Print command button:
>GET PRINTER()
>SET PRINTER ON
>SET ALTERNATE TO a text file
>I create the report using
>? 'THIS IS MY REPORT'
>?
>? 'THAT'S AN EXAMPLE'
>
>Then,
>
>In the Valid procedure of a Print command button:
>CREATE CURSOR TEXTFILE(filename c(60),mem m)
>
>and then APPEND MEMO mem FROM report.txt
>
>EJECT PAGE
>
>SET PRINTER OFF