Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form disappearing under another form
Message
From
28/10/1998 09:32:47
 
 
To
28/10/1998 09:20:00
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00150735
Message ID:
00151521
Views:
29
>>***oEditModule.CloseChild
>LParameter cFormname
>nForm=This.GetFormNumber(cFormname)
>This.Moduleforms(nForm).Release
>This.Moduleforms(nForm)=.NULL.
>
>When you start a form:
>***oEditModule.StartForm
>LParameter cFormname
>nForm=This.GetFormNumber(cFormname)
>if type("This.Moduleforms(nForm)")="O" and not isnull(This.Moduleforms(nForm))
>This.Moduleforms(nForm).Show
>else
>This.Moduleforms(nForm)=createobject("MyEditFormClass")
>endif
>
>
>Modeless form will never disappear if it's linked to upper-level object. That's the difference from linking to variable.


I see where you're getting at. Still, your way of doing it is a neat one for a form having to deal with several underlying linked forms. In my case my example solved the problem I encountered; I just let the form itself release it's refference variable. I'll admit, however, that in this case your approach has more OOP in it. :-)
Danijel
Previous
Reply
Map
View

Click here to load this message in the networking platform