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:41:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00220463
Message ID:
00220477
Views:
21
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform