>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)
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.