Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More MODAL forms
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00115397
Message ID:
00115414
Views:
17
>Edward & Kamal
>
>You both mention outstanding references and I'm not sure what you mean. More detail:
>
>In my menu, under the reindex option I call oApp.ShowReindex(). This is the code in my application class for the ShowReindex method:
>
>this.addobject('oReindex', 'frmReindex')
>
>with this.oReindex
> .setall('fontname', this.FontName)
> .setall('fontsize', this.FontSize)
> .show()
>endwith
>
>return
>
>There are currently no "thisform.release" statements in the form that comes up. I just want the form to be modal and be able to click on the close button and have the form release.
>
>Are you both telling me the oReindex reference is casing my form to remain displayed?
>
>TIA
Leighton,

Yes, exactly. Modify your code to htis for a modal form;
this.addobject('oReindex', 'frmReindex')

with this.oReindex
   .setall('fontname', this.FontName)
   .setall('fontsize', this.FontSize)
   .show()
endwith

* Release the external reference to the form object
THIS.oReindex = NULL

return
The above will not work well for non-modal forms.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform