Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Software Log File
Message
From
27/04/2007 06:15:04
 
 
To
27/04/2007 05:54:42
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01220348
Message ID:
01220364
Views:
26
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform