Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisformset vs this.parent.parent?
Message
 
 
To
29/01/2001 11:27:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00469735
Message ID:
00469752
Views:
8
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform