Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formsets & adding forms programically
Message
 
To
05/04/1998 07:52:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00089605
Message ID:
00089733
Views:
32
>How do you add an independant form
>to a formset programically?
>
>CommandButton on Form1
> DO FORM form2
>
>Will this guarantee that "form2"
>is always in "Formset1".
>
>'Form2' is NOT a class.

You can "pseudo-add" a form to a formset at runtime:

1) in formset declare custom property form2
2) from somewhere in formset, issue: do form form2 name thisformset.form2 linked

It's not truly in the set, but it can reference both ways, use formset's custom props/methods, and will release when formset is released.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform