Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling another form from current form
Message
De
01/11/1999 12:24:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00284853
Message ID:
00284866
Vues:
17
You could create a reference to both forms, for example

goForm1 = createobject('form1')
goForm2 = createobject('form2')

You can now reference form1 from form2 and vice versa. Imagine form1 is active and form2 is hidden. A button on form1 could perform the command:

goForm2.caption = 'Form2'

and this will change the caption property of form2, even though it's hidden. You can access all objects and properties of form2 in this manner. The command could quite easily be:

goForm2.timer1.enabled = .F.

Derek
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform