Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Software Log File
Message
De
27/04/2007 06:15:04
 
 
À
27/04/2007 05:54:42
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:
01220364
Vues:
20
>Dear Sir,
>
>My software has logon table which includes information all users and their passwords etc.
>
>Could you please help me more in this regards.
>
>Thanks

Tariq

There's no need to call anyone "Sir".

So do you you want to put the results in a text file, using the low level file handling functions?

If so:

PUBLIC gtStartDT, gtEndDT

Either when someone logs on, or as soon as the program starts:
gtStartDT        = DATETIME()

Either when someone logs off, or just before the program ends:

gtEndDT          = DATETIME()

lnFilehdl        = FCREATE( lcPathWherePutLogFile)

* (or if text log file already exists)

lnFilehdl        = FOPEN( lcPathWherePutLogFile)

lcDurationString = TTOC( gtStartDT) + " to " + TTOC(  gtEndDT)
= FPUTS( lnFilehdl, lcDurationString)
= FCLOSE( lnFilehdl)
This hasn't been tested and I'm not sure the message string ( lcDurationString) is exactly what you want as, I don't have your orig. message in this to refer to, but I'm sure you can format it as you wish.

Terry
- 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