Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying Conditional Container
Message
 
 
To
19/07/2001 10:59:36
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00532576
Message ID:
00532733
Views:
12
>I want to have a portion of a form that changes depending on a condition whenever refreshed. Can I create different containers as classes and then call the one I want to display somehow during runtime? I'm trying to avoid having multiple containers that will occupy the same space on my form in development. Thanks!
>
>Regards, Renoir

Yes, this seems like a reasonable approach. Use
thisform.NewObject('cntFirst','cntFirst','mylib.vcx')
     if type('thisform.cntFirst')='O'
        with thisform.cntFirst
        .left=...
        .top=...
        .visible=.t.
        endwith
     endif
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform