Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling another form from current form
Message
From
01/11/1999 21:03:45
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00284853
Message ID:
00285229
Views:
23
>I have a Form "A" and Form "B". Form "A" is running a process in a timer and form "A" is not visible. Before I exist Form "B", I need to stop the timer on form "A". How do I refer to form "A" timer.enabled property from form "B"? What I'm trying to say is how do I know shutdown the timer which exist on form "A" before I exit from form "B"?
>Help appreciate.
>
>thanks
>Nick Patel

You can search through _SCREEN.Forms collection to get the form reference:
For Each oForm In _SCREEN.Forms
 IF oForm.Name=="FormA"
  oForm.Mytimer.Enabled=.F.
 Endif
Endfor
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform