Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing forms in a form set
Message
From
30/11/1998 16:28:33
 
 
To
30/11/1998 16:05:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00162538
Message ID:
00162559
Views:
18
>>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.
>
>It's reliable to use FormSet.RemoveObject method to close its form(s). Also, you can ge in troubles closing a form if some its property holds reference to another object. All these 'object-type' properties should be set to .NULL. in form.destroy event.

Hi !
Pay attention with Formset.RemoveObject method... Have you read the VFP6 Bug list on Microsoft web site... With this method you have the chance to get the well known C0000005 Exception error !!!

Gilles
Gilles Azria
-------------------------------------------------
http://www.profiledatabase.com
http://www.photoprofile.ch
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform