Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement