Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindEvents to Windows Date Change
Message
From
23/08/2006 09:40:46
 
 
To
23/08/2006 09:14:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01147859
Message ID:
01147876
Views:
13
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform