Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Computing Length Of Time User Logged In
Message
 
À
08/06/1998 07:01:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00105725
Message ID:
00105726
Vues:
35
Lincoln,

SECONDS() is actually the way to go. I don't know if it's in the documentation, but the SECONDS() function doesn't reset at midnight if FoxPro is running. This is because the main purpose of the SECONDS() function is to calculate elapsed time rather than absolute time.

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform