Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer capability outside form
Message
De
06/08/2004 20:06:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/08/2004 19:57:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00931480
Message ID:
00931483
Vues:
21
>I want a timer type function to start up as soon as someone starts up the menu for a program (they don't necessarily have to open any form). I want this timer to poll the value of a variable in a table so that if it changes to .T., the program will shut itself down after 5 minutes have elapsed. I don't know if this would require a second timer call. From the VFP manuals it looks like the timer object can only exist on a form. Is this incorrect, or is there some other way I can do this?

No, Timers can exist independently. Just create an object based on the timer class, or, probably better, on a class you create, based on Timer, where you define the desired PEM.
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