Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BindEvents to Windows Date Change
Message
De
23/08/2006 09:40:46
 
 
À
23/08/2006 09:14:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01147859
Message ID:
01147876
Vues:
12
>Is there a way to bindevents to when the date of the computer changes? In our accounting package when the user first logs in we set a property to the current date but allow them to change the date so they can 'back post' entries that they need to do. One client runs 24/7 and isn't happy that the date doesn't change after midnight.

Not sure if there is a Windows event for binding, but a work-around would be to calculate the time to midnight at the start of the program (when setting the custom date property). Then set a timer to "count-down" to that time plus a couple of minutes. Then re-read the date and calculate new timer setting.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform