Check out the approach discussed in this site (see message reference) Forum: Visual FoxPro Category: Coding, syntax & commands Title: Re: How to create and write text into a Thread #
507114 Message #
507120.
>Problem: I want to run some checks and print errors to text file.
>Code:
>
>SET CONSOLE OFF
>SET ALTERNATE TO SomeFile
>** Do checks
>? 'Error message'
>SET ALTERNATE TO
>
>'Error message' appears on screen.
>Fox creates file 'SomeFile' but it is empty.
>
>What I have missed?
>
>Thans
If it's not broken, fix it until it is.
My Blog