>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