>Hi all,
>
>I want to create a log file to trace the running of my programming in Foxpro. I have found some source but cannot find it. Can someone please suggest some link or give an example to me. thanks.
>
>Linda
Linda,
You can use DebugOut to send output to the corresponding window in the debugger.
Or, write a small function to write to a log file, something like:
FUNCTION LogText(txExpression)
StrToFile(trans(txExpression), "MyLog.log". .T.)
ENDFUNC
The trans() converts any expression to type character.
The third parameter, .T., specifies that contents will not be overwritten.
Greetings, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)