Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing objects from a parent form
Message
De
31/12/1997 02:41:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00068555
Message ID:
00068559
Vues:
32
>I need to apply changes to a grid in a parent form from a button in achild form. I've been trying this command:
>
>ThisForm.parent.Transgrid1.Columns[30].setfocus()
>
>but I get error messages; how am I supposed to issue the right command?
>
>Thanks in advance,
>
>Gil

If you 've created a formset and your parent form is FORM1 and child form is FORM2, use this syntax:
THISFORMSET.FORM1.Transgrid1.Columns[30].setfocus().
PARENT is used when your object is in a container.

Pierre.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform