General information
Category:
Coding, syntax & commands
>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
Hi Pedro
I think when your in the load form, the active window is not yet to be set. Try to activate it before. ACTIVATE WINDOW myWindow.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only