Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About Form Release..
Message
De
24/08/2000 06:09:47
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
24/08/2000 05:50:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00408658
Message ID:
00408659
Vues:
25
>As i calling form by form by press command button only, but now i found that i can't release the parent form when calling out the son form.
>
>Example of my coding,
>In parent.cmd_1.click :
>do form son
>thisform.release
>
>
>after i press the button "cmd_1", i still found that the form "parent" are still display on the screen. How can i slove this problem.
>Thx~!

Hi,

This is probably because your child form is Modal. The parent code will wait at the Do Form statement, and only execute the Release once the child itself has been released.

You could set a flag when the user clicks the button on the parent, then in the UNLOAD method of the parent, call the child form.

i.e.
Parent.cmd_1.click

THISFORM.NextFormName = "son"
THISFORM.Release

Parent.Unload

IF NOT EMPTY( THIS.NextFormName)
DO FORM ( THIS.NextFormName)
ENDIF
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform