>>Jim, I think there's one more item to consider. Kin Keung mentioned that one of the forms was MODAL. That being the case, wouldn't it be better to use the _screen.activeform.release() instead of _screen.forms(1).release? This would automatically pick the active modal form to be the first form released.
>>
>>Or am I missing something obvious?
>>
>>Thanks,
>Barbara,
>
>That or;
>
>
>lnForms = _SCREEN.FormCount
>FOR lnCnt = lnForms TO 1 STEP -1
> _screen.Forms(lnCnt).Release
>ENDFOR
>
Good idea - I was going to suggest that earlier in the thread and then wasn't sure that the highest value of lnCnt in your code above would be the modal form. It seemed LOGICAL, since the modal form should be the last form instanciated....
Barbara