Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing objects from a parent form
Message
From
31/12/1997 02:41:19
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00068555
Message ID:
00068559
Views:
39
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform