>>FOR n = _screen.formcount to 1
>> _screen.forms[n].Release()
>>ENDFOR
>
>This will only fire if FormCount = 1 or 0, and causing an error if its zero. Try
>
>
for n = _screen.formcount to 1 step -1
Yes, that's what I meant to write. Thanks Mike.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison