>My problem is:
>
>Two formsets are activated with DO Formset1 and DO Formset2 command. Every formset contains a form and a tooltbar. The WindowType of them are set to modeless.
>
>Then a form is activated with DO Form3 command. The WindowType of Form3 is set to modal.
>
>DO logout command I specify in ON SHUTDOWN is executed if I exit my application. The code is:
>FOR i = 1 TO _SCREEN.FormCount
> .
> .
> .
> _SCREEN.ActiveForm.Release
> .
> .
>ENDFOR
>
>Now Form3 is frontmost, it is released normally, but Formset2 and Formset1 cannot.
>
>If I set Form3 to modeless, Formset2 and Formset1 can be released normally.
>
>Why? Because Form3 must be set to modal, so how can I do?
>
>Thanks in advance.
Try changing the code to :
FOR i = 1 TO _SCREEN.FormCount
_SCREEN.forms(i).Release
ENDFOR
Cetin