Here is a quick way to append text to a file, in VFP:
FUNCTION MyDebugOut(tcText)
StrToFile(ttoc(datetime()) + " - " + tcText, "c:\debuginfo.txt", .T.)
ENDFUNC
>John,
>
>Thanks for your quick response to my posting.
>
>Since I posted my message, I found what I was looking for. I found that I can call the OutputDebugString function in the Win32API. All I need to to is to declare it before I call, like so:
>
>DECLARE OutputDebugString IN WIN32API STRING
>
>Then,
>
>OuputDebugString("Test")
>
>The result appears in DebugView.
>
>Jim
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)