>I have a form in which is called in a loop,
>
>For i=1 to nRetVal
> do form form_name with array[i]
>endfor
>
>The problem is that I want the form to be released before the next execution of the loop is processed.
Several others have noted that making the form modal will get the effect you want - I won't drive that point into the ground further.
what I
do wonder is what your intent is in that loop methodology. What are you trying to that requires that you do this loop? In particular, is there anything that prevents you from saying:
loForm = CreateObject("form_name", @array)
loForm.Show()
and having the code in the form methods cover all the work for you.
Incidentally, needing the ability to send a single entity (as opposed to a set of variables) into the form counts as a legitimate answer.