Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change topform timer interval
Message
From
24/12/2009 10:14:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/12/2009 08:43:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01440498
Message ID:
01440533
Views:
46
>I have only one top form.
>the timer is on the top form.
>I create oapp object on my start app with property, then I add timer on the top form that check the property and I can change the property any child form.

Well, then, I don't see any problem. Add the property to oApp (I'll call it oTopoForm), then assign the main form to this property. This can be done within the form itself: oApp.oTopForm = ThisForm. I suppose this can also be done from outside, the moment you instantiate the form, although I didn't try this with properties: do form TopForm name oApp.oTopForm.

After that, you can access the top form through the application object, for example: oApp.oTopForm.MyTimer.Interval = ...
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