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