Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisformset vs this.parent.parent?
Message
 
 
À
29/01/2001 11:27:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00469735
Message ID:
00469752
Vues:
7
I have the 'this.formset' reference, which it does not like. Seems like I have had the same problem in the past .. where a this.form does not work so i change it to this.parent.parent. If the control or method is anywhere under the form, should this.form work?

>Hi Brenda,

>I dunno what you did, but I generally leave ThisForm (I don't use formsets) references alone. Too easily broken. For example, if you refer to This.Parent in a control (meaning the Form) and then move the control to a Pageframe, you just broke the code.

>>I have a button on a form that is within a formset. Made and tested code changes ages ago that referenced 'thisformset.method1'. Now I am getting an error of methods1 not found (obviously I changed something, but I do not know what) Now when I code this.parent.parent.method1 (which is the formset) it works.
>
>>What is the "rule" for when you can use thisform or thisformset vs the this.parent type referencing?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform