Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the property from other form
Message
From
03/04/2018 13:26:43
 
 
To
03/04/2018 11:13:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01659121
Message ID:
01659124
Views:
79
>I have a timer in the main form, when the I go to the next form, I need to turn off the timer, otherwise it will cause some problem.
>
>The main form is f_start.scx
>if I still at the same form, I can easily turn off by:
>
>thisform.mytimer.enabled = .f.
>
>
>but when I go to another form (f_cust.scx), I want to turn off that timer in f_start.scx,
>using some command likes this:
>
>f_start.mytimer.enabled = .f.
>
>
>that command is not working, what is the proper command?

Put the code in the original form's Deactivate method, and presumably code to turn it back on in the Activate method.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform