Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need Alarm Clock Sample
Message
De
09/03/2004 08:37:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
09/03/2004 01:59:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00884333
Message ID:
00884390
Vues:
14
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform