Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close any open form before exit
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00913951
Message ID:
00913998
Views:
15
>
>IF _Screen.FormCount > 0
>    FOR x = 1 TO _Screen.FormCount
>       _Screen.Forms(x).Release
>    ENDFOR
>ENDIF
>
This code can get you into trouble. The problem is that the formcount decreases each time you release a form. It's better to start with the higher number and decrement your counter in this case:
IF _Screen.FormCount > 0
    FOR x = _screen.FormCount to 1 step -1
       _Screen.Forms(x).Release
    ENDFOR
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform