Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to run VFP as a background service
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00571951
Message ID:
00571975
Vues:
26
Hi Mike

I solve this by creating a new class based on the timer class and adding it to my vcx. Then in my timer class I add whatever code I need. Then in your program somewhere use mytimerobj = createobject("mytimer"). Now your timer is 'free' of any form.

The variable you assign the timer object to must be scoped to the entire session where you need it. I instanciate the timer in my main program so that it is always in scope.

One word of warning: if VFP is busy processing something then the timer will not fire until processing stops.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform