Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a form in a formset after release
Message
From
01/04/1998 09:01:51
 
 
To
31/03/1998 22:19:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00088446
Message ID:
00088651
Views:
35
>>>Dear all,
>>>
>>>I have a formset containing 2 forms. When opening the formset, I have released form 2 in the init of form 1. Then after clicking a button in form 1, I want to open form 2. But I cannot find the command in any book or help. Is it possible?
>>>I have tried:
>>>thisformset.form2.open or
>>>thisformset.form2.activate
>>>but all fail.
>>
>>Release form means that you annihilated it completely. You should either Form.Hide and then Form.Show or open empty formset and then use Formset.Addobject() to instanciate new forms from classes.
>
>Well, can I use:
>
>_screen.Addobject('MyNewForm','Form') ??
>
>or simplest add code after the 'Read Events'
>
>Do FOrm mYformABC
>
>Read Events
>
>Do FOrm MyFormNext
>* pqr = createobject('Pqr','Form') ....
>
>Read events....
>
>^_^;

AddObject is applied to Formset only, in any other cases you can use Createobject() or DO Form
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform