Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Log file
Message
De
22/01/2002 06:27:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/01/2002 03:59:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00608260
Message ID:
00608278
Vues:
20
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform