Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Computing Length Of Time User Logged In
Message
From
08/06/1998 08:57:43
 
 
To
08/06/1998 07:01:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00105725
Message ID:
00105749
Views:
35
Store DATETIME() on loggin and logout. Subtract the two and
it returns the difference in seconds (even when days apart).
-myron kirby-
===========================================
>I'm trying to track the amount of time a user is logged in to a specific form. I need to calculate the difference between their form.init(login time) and form.destroy(logoff time) and display it as a character field in a log table. I've been trying by using the Seconds() function, but this only calculates seconds since midnight. Many of my users will be logged in from 9PM one night 'til 4AM the following morning. How can I track this? I'm sure this has been solved long ago, but I can't find it in the documentation.
>
>TIA
>
>--lincoln
----------------------------------
-myron kirby (mkirby2000@gmail.com)-
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform