Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close ALL forms
Message
From
01/06/2001 05:54:21
 
 
To
01/06/2001 05:23:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00513626
Message ID:
00513633
Views:
18
>Hi
>
>How can I close all the forms in _Screen.
>
>I have tried:
>
>FOR x = 1 TO _Screen.FormCount
>_Screen.FOrms(x).Release()
>ENDFOR
>
>But this gives me problems, because when a form is closed, the formcount is reduced and this seems to cause problems.
>
>Any ideas on how this should be done correctly?
>
>Thanks
>Kev

Kevin,

You have to go in reverse order.
lnCount = _Screen.FormCount
FOR x = lnCount TO 1 STEP -1
    _Screen.Forms(x).Release()
ENDFOR
Jens Erik
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform