>Hello to all
>
>I put this code in the load event of a form:
>
>if _screen.formcount>1
>_screen.activeform.windowstate=1
>endif
>
>This is because I want to minimize any open form when I load another.
>VFP says that _screen.activeform isn´t an object but he evaluate _screen.formcount right.
>
>If anyone can tell me what is the mistake please do it.
>
>Thanks
>
>Pedro
Pedro,
That really needs an activeform. You could workaround as :
for each oForm in _screen.forms
oForm.windowstate = 1
endfor
Cetin