Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Software Log File
Message
De
27/04/2007 05:01:02
 
 
À
27/04/2007 03:44:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01220348
Message ID:
01220357
Vues:
21
>Dear Experts
>
>I want to create a log.txt or log.ini or log.xls for my software as:
>
>Suppose some user uses my software in the follwing duration:
>27-04-2006 06:00:25 AM TO 27-04-2006 08:30:55
>
>I want ot store values into log file
>
>SNO-----------Start--------------------stop---------
> 1----27-04-2006 06:00:25 AM -- 27-04-2006 08:30:55 AM
>(like three fields)
>What procedure should I add into my main prg.
>I do not want to use dbf for this purpose.
>
>Please help

Tariq

I don't know if your users have logon table or not (multi-user).

You could record, in global variables, the date and time that they log on, or as soon as the program is invoked.
Similarly record the date/time they log off, or last thing before the program is closed.

If you want to put the results in a text file then you can use the low level file handling functions:

FOPEN(), FCLOSE(), FPUTS(), FWRITE() etc.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform