>>Michelle, you need
>>
>>FOR n=1 TO _screen.FormCount
>>_screen.forms[n].Release
>>ENDFOR
>>
>>Nick
>
>Nikolay, ne zabyvay...
>
>We've had a problem with this about a year ago - this won't work, because you're deleting members of _screen.forms and scanning it at the same time. Kind of walking upstears and cutting the staircase at the same time. The solution was:
>
>For n=_screen.FormCount to 1 step -1
> _screen.forms[n].Release
>EndFor
>
>Or, another one, which is essentially the same - always release the last one:
>
>Do while _screen.FormCount#0
> _screen.forms[_screen.FormCount].release
>enddo
>
>Though, in case of some dependencies, there may be a case that some of the forms won't release before another form, in which case the first method will leave them unreleased, and the other will loop indefinitely. A combined iterative solution would be a real one.
Pravilno!
You are right, actually I didn't have VFP and my actual code in hands at a time (working with FPD 2.5 now :)
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