Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Screens/Forms Layouts
Message
From
07/02/2000 20:35:19
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00328406
Message ID:
00328612
Views:
17
>>I am opening several forms in my application. Right now, I'm not sure which one I'm closing, which one I'm hiding etc. Can anyone tell me the best method to ensure that I am opening and closing all my forms when I enter and exit them. Imagine my surprise when I look in the background after my program errors off and I still see a form that I KNOW I had a thisform.release() in the click event of the button on that form!
>>
>
>If you are using the native VFP window as your main window, you can play with the following:
>
>
>FOR i = _SCREEN.FORMCOUNT
>    _SCREEN.FORMS[i].RELEASE()
>ENDFOR
>
>

This will fail in several different ways - some forms will get skipped over, and you'll iterate beyond the end of the list. If you use this logic, iterate downwards from _SCREEN.FORMCOUNT rather than up.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform