Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Alarm Clock Sample
Message
From
09/03/2004 08:37:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
09/03/2004 01:59:17
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00884333
Message ID:
00884390
Views:
13
>Dear Experts
>
>I want to use alarm clock in my application. If any body has sample form, please help me.
>
> Thanks

I don't have samples, but it seems quite simple. Calculate how many milli-seconds are left until the desired time, and use a Timer to fire an event at the specified time. As soon as the Timer fires, disable it. Show a MessageBox(), or perhaps better some special form, with the desired message.

You might also forget about programming VFP, and just use the Windows Scheduler.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform