Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer capability outside form
Message
From
06/08/2004 20:06:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/08/2004 19:57:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00931480
Message ID:
00931483
Views:
22
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform