Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling another form from current form
Message
De
01/11/1999 21:03:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00284853
Message ID:
00285229
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform