Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run VFP as a background service
Message
From
23/10/2001 04:20:41
 
 
To
23/10/2001 01:13:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00571951
Message ID:
00571987
Views:
37
Hi!

Little note: once I did made the same and experiensed that Timer event of such time does not fire at all until I put that timer on the form, no matter which form - the form was just created by "Createobject('Form')" too. My app contained ActiveX controls, maybe that was a problem - I do not know exactly.

>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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform