Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape from Infinite loop
Message
 
À
05/01/2007 11:48:29
Ali Ihsan Turkoolu
Galaksi Bilgisayar A.Þ.
Ankara, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01182858
Message ID:
01182871
Vues:
10
>I should write a VFP program that work on server. Continuously, This program will look a vfp table, if new records added, make some time consuming tasks.
>
>User should start and stop this program for maintenance purpose.
>
>Question is: How can I escape from an endless loop, when user clicks the stop buton on my vfp form?
>
>
>
>Is this type program consume much CPU time due to endless do while loop?
>
>
>
>Thanks for all help.
>
>
>
>Ali Ihsan

DON'T do this job in a loop. Add a timer set its interval and in timer event check for new records and do the job. When user click on button just Disable timer.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform