Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing Windows
Message
From
15/07/1998 15:14:54
 
 
To
15/07/1998 15:08:31
John Goodrich
John A. Goodrich & Associates
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00117759
Message ID:
00117766
Views:
18
Hi John

>When i am working in the program manager, I run my main program
>for testing, at times when it bombs forms are left on the screen. I can get to the command box. but I cannot get the forms closed,
>I usually have to exit VFP and startover. I have tried clear events
>close all databases, release forms. I know there probably is an
>easier way then starting over everytime, but right now its a mystery
>to me.

This is my way of closing all forms on an error or on shutdown:
FOR i = 1 to _SCREEN.FormCount 
   IF TYPE("_SCREEN.Forms(i)")="O"
      _SCREEN.Forms(i).Release()
   ENDIF
ENDFOR
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform