Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie question
Message
From
08/11/1999 16:22:28
 
 
To
03/11/1999 23:24:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00286561
Message ID:
00288691
Views:
19
>Hi Alex,
>
>>I would like to make my base form class issue a read events, or to set the form to modal, or whatever, depending on whether read events is in effect or not. Since no function seems to indicate this I will have to resort to a global variable, which I'd rather not.
>
>In the Property Sheet of the form, set the WindowType to 2 - Modal. This means that in this code:
>
>
WAIT WINDOW '1'
>DO FORM MyForm
>WAIT WINDOW '2'
if the form is modal, you won't see the '2' untill after the form has been realesed, if the WindowType is not 2 then you will see the '2' before the Form is done.
>
>Now to aviod the variable scenario, you can use the Modal form method and it will work with no special code in both scenarios (startup and later).



Hi Mike,

I hadn/t answered before because I hadn't been able to try your suggestion. I haven't had very much luck, so far.

What I have found is that once a form is modal, I have to call ThisForm.RELEASE to get out of it. CLEAR READ will not do. Is that correct?

Since I am trying to write an automatic migrator, that means replacing the CLEAR READ with ThisForm.RELEASE(). Is that basically correct ?

Thank you.

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform