Try
FOR EACH loForm in _Screen.Forms
loForm.Release()
ENDFOR
>Hi
>
>How can I close all the forms in _Screen.
>
>I have tried:
>
>FOR x = 1 TO _Screen.FormCount
>_Screen.FOrms(x).Release()
>ENDFOR
>
>But this gives me problems, because when a form is closed, the formcount is reduced and this seems to cause problems.
>
>Any ideas on how this should be done correctly?
>
>Thanks
>Kev
James Beerbower
James Beerbower Enterprises
Frankfurt, Deutschland