Chris,
Drop the @SAY and use TEXTMERGE with \ and \\
set textmerge to TheFile.txt
set textmerge on
\<<Field1>> <<Field2>> <<Field3>>
set textmerge off
set textmerge to
>I've been using Foxpro 2.5 to dump information to text files using the SET DEVICE TO filename and @SAY commands. The lines are incremented using a simple line counter called 'mline' each time the customer record changes. This programme works fine in VFP6 however when it gets to line 2000 approx the error message 'Invalid Co-ordinates' appears - and the programme stops.
>
>I can't find anything the in the documentation relating to this apart from the usual brief description of the error message. The 'COPY TO' command in VFP6 is no good as it places quotation marks around text fields - which we don't need.