Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal, In Top-Level Form?
Message
From
21/04/2011 10:12:53
 
 
To
21/04/2011 08:40:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01507987
Message ID:
01508027
Views:
84
>>>>Short version of this question... does any form operating in ShowWindow 1 -In Top-Level Form become modeless by default?
>>>>
>>>>My program calls the mail form as a modeless form as a Top-Level form. Screen = Off With the requisite Read Events, the form calls other forms. I have designated several as Modal forms with the ShowWindow 1 - In Top-Level form. Can a form actually be Modal In Top-Level form? I have several instances of forms opened in sequence as Modal from a prior Modal form. Just recently I have one form that seems to be acting as a Modeless form, executing code that Selects an alias not consistent with its place in the stack. When I Set Step On, it executes in sequence, but without the Set Step On, it has Selected the wrong alias for its place in the code. Thanks. dg
>>>
>>>I re-read your message and I think you have something else going on:
>>>Does the second modal form get called by the INIT of another modal form? I once had this problem and in fact using debugging it did work, but not in runtime. I solved it with a timer.
>>
>>Main form.ShowWindow = 2 As Top-Level... yes always modeless
>>
>>Form 1 called from Main form (not init, because it would never be called as the form does not yet exist) form.ShowWindow=1 In Top-Level Form is Modal and this is where the problem exists. The problem is there is a Select (Alias) that is being called by code somewhere on the form that is causing a code error because it has the wrong table selected. I cannot find the code that is changing the Select(Alias) and when I insert Set Step On it never executes the change of Select(Alias) but does so in real time.
>>
>>Can this second form In Top-Level form be modal?
>
>The form can be definitely modal, that should not be the problem.
>If I understand you correctly, the error is that another cursor is selected and causes an error in your code. Perhaps you can refactor the code to be independent of the selected workarea? can you post the code block that raises the error?


Pardon the ring! My bad, I found the place in the code that was Selecting the Alias and throwing everything out of whack! Thanks to you and Naomi for the help!

dg
Previous
Reply
Map
View

Click here to load this message in the networking platform