Hi Sherif
The print to file no longer works as far as I know! What you need to do is {open} a file and then add to the content of the line by using {writeln}. Increase the row number and write the next line. When done (close} the file - this will create things like comma delimited files etc.
Example
{open +"r:\"&a_file&".txt";w}
{for a_count,0,@rows(printsales_r)-2,1,s1_extractagent}
{close}
SUB-ROUTINE
s1_extractagent (writes each line to the open text file)
{writeln +@index(printsales_r,0,a_row)&","&@index(printsales_r,3,a_row)&","&@string(@index(printsales_r,4,a_row),0)}
{let a_row,a_row+1}
{return}
Long winded, but it works!
mikesherlock