Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a form
Message
 
À
02/03/2004 12:05:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00882376
Message ID:
00882385
Vues:
16
>hi all,
>
>i have a form with the following buttons on it - Insert, Modify, Delete, Save, Cancel and Exit.
>
>When i click on Insert or Modify buttons, i am loading another form on top of the first form. i want to be able to close the recently opened (2nd form) when i click on the Save or the Cancel buttons that are on the first form.
>
>How can i do this ?
>
>With sincere thanks.

While it is possible, I would question such interface. I would rather say that typically the child form should be modal, so it has to be closed before going back to the calling form. In this case I would place Save and Cancel buttons on the second form.

However, when you open the child form you may set the object reference property to the child form that you run from Insert or Modify buttons in the parent form. Then when you Save or Cancel, you can do whatever you want to the child form using that object reference property. You will need to take care of uncommitted changes in the child form (if any).
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform