Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing forms in a form set
Message
 
À
30/11/1998 15:56:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00162538
Message ID:
00162706
Vues:
19
>I have created a form set containing 2 forms, one contains a grid and the other contains detail information for a selected record. When I close one of the forms in the set, the other form will not close. After trying numerous scenerios, I have closable = .f. for both forms and I have an exit button which contains the following code:
> THISFORMSET.frmTimeLogGrid.RELEASE()
> THISFORM.RELEASE()
>The exit button is contained on the detail form frmTimeDetail. I understand that the form set method will run after each form method of the same name on each form, and it appears to do this.
>
>The Help, Manuals, and books I have not addressed my problem. Does anyone have any ideas? Thank you in advance for your help.

A good solution is to NOT release any forms in a formset. Just Hide it from your Exit button, or in form's Queryunload put Nodefault and redirect action to the Exit button (This.cmdExit.Click). Then release the entire formset all at once when you're ready...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform