Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open a form in a formset after release
Message
De
01/04/1998 09:01:51
 
 
À
31/03/1998 22:19:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00088446
Message ID:
00088651
Vues:
31
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform