Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen object quesiton
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00542708
Message ID:
00542719
Views:
24
>using the _sceeen object can you add objects to it. ?
>I have been attepting to do so with the commands like
>_screen.addobject("omyform","myform")
>
>but I get errors saying that I can an object to this type of container .
>I can get other type of objects added to the _screen element but not forms.
>
>I am sure I am missing something basic here... any clues. ?
>
>thanks
>Bob Lee

Hello Bob,

Not all types of objects can be added to different type of containers.
For example, Grid object may contain only columns, Pageframe can contain only pages, etc. You can add Container to the Form, but you cannot add Form to the Form.
_screen object is very similar to the Form object and it does not allow to add Form objects to it.
You run forms with DO FORM command and it gets added to _screen.forms collection.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform