Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Log file
Message
From
22/01/2002 06:27:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/01/2002 03:59:09
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00608260
Message ID:
00608278
Views:
21
>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:
* Assumes you have VFP 6 or later. Not tested.
FUNCTION LogText(txExpression) && Accepts any type of expression
  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)
Previous
Reply
Map
View

Click here to load this message in the networking platform