Both the other guys forgot their step = -1 in the code. Another thing to consider:
n = 1for i = 1to_screen.FormCountif ( _screen.Forms[n].QueryUnload() )
_screen.Forms[n].Release()
else
n = n + 1endifendfor
This always releases form #1 in the array as long as the form says it's ok to be released by checking QueryUnload.
>How do I loop through active forms that are not in a formset? I need to know what form are currently open and close them or hide them at any one point.