Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Screen object
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00392079
Message ID:
00392370
Views:
10
Hi Michael,

See Coding, syntax & commands How to close all forms? Thread #284684 Message #284684

Very good discussion on how to do it.

>I'm trying to release all forms, other than the main form, when a button is clicked. They are not in a form set. The code works fine when the main form and one other form are open, but once I open more forms the code fails with a "FORMS is not an object error."
>
>For i=1 to _screen.formcount
> If _screen.forms(i).name<>"frmMain"
> _Screen.forms(i).release
> Endif
>Endfor
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform