Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal forms in VFP6.0 SP 5
Message
From
26/10/2001 02:40:50
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00573517
Message ID:
00573524
Views:
16
>Is there a known bug in calling one Modal Form from another?
>
>What is happening is that if I am on one modal form, then call another modal form, when it releases my first form is no longer acting as modal (ie can get to menus etc)
>I dont know if this is a bug or something in my code/base classes.
>Ive tried putting
>
>ThisForm.Hide()
> *Do other form
>ThisForm.show(1)
>
>but it didnt help. Ive checked with the debugger and the forms WindowType is still set to Modal.
>
>anyone have this problem before?

According to the docs, Hide() is the same as Release() in that it nominally causes a modal form to "resume" (look at the docs for "Show"). I suspect it's the problem.

You could perhaps set the form's .Visible property instead.

One other possibility would be if the second modal form is not releasing properly, or the first form holds a reference to the second that is not released before the second form is (i.e. dangling reference).
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform