Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen.activeform don´t work in load event
Message
From
19/05/1999 11:38:15
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Quebec, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00220463
Message ID:
00220471
Views:
28
>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
Map
View

Click here to load this message in the networking platform