Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms cannot be released normally. Why?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00133827
Message ID:
00133875
Views:
13
Jim, I think there's one more item to consider. Kin Keung mentioned that one of the forms was MODAL. That being the case, wouldn't it be better to use the _screen.activeform.release() instead of _screen.forms(1).release? This would automatically pick the active modal form to be the first form released.

Or am I missing something obvious?

Thanks,
Barbara

>Kin Keung,
>
>Cetin has the right idea but the code will fail. Try this code;
>
>
>lnForms = _SCREEN.FormCount
>FOR lnCnt = 1 TO lnForms
>   _screen.Forms(1).Release
>ENDFOR
>
>
>The reason to always release forms(1) is that the first time through the loop you have three forms and lnCnt = 1. Thesecond time through there are 2 forms and lnCnt = 2, but the third time through the loop you have 1 form and lnCnt = 3.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform