Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer capability outside form
Message
From
07/08/2004 11:08:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/08/2004 21:57:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00931480
Message ID:
00931538
Views:
22
>>Althought that will probably work, it really isn't necessary to add it to a form, or screen.
>>
>>
>>Public MyTimer
>>MyTimer = CreateObject("cMyTimer")
>>
>>
>>should also work.
>>
>
>No need for public, private is fine...Jim Booth would throw a fit :)

Yeah, I know; any variable defined as private in the main program is public, for all practical purposes. Personally, I don't like using public variables either.

I am just thinking of the following. What would happen if I define a Timer with a local variable, in the main program? What would happen with the object? In any other place (outside the main program), the variable is invisible, but still exists. Would the Timer events run? Not that I am proposing such a radical thing, but I was just wondering what would happen.
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
Next
Reply
Map
View

Click here to load this message in the networking platform