Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen.activeform don´t work in load event
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
_screen.activeform don´t work in load event
Miscellaneous
Thread ID:
00220463
Message ID:
00220463
Views:
62
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
Next
Reply
Map
View

Click here to load this message in the networking platform