Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newobject(...'pageframe') on a pageframe
Message
 
 
To
16/02/2001 17:30:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00476863
Message ID:
00476888
Views:
24
>I am doing a wizard type form class, and on page2 I want to insert an replaceable pageframe with a couple of pages. I can do this by simply dropping the pageframe class on page2, but if in page2.activate I do this:
>
set library to (thisform.classlibrary) additive
>this.addobject('oFilter','rptapp')
>
>...it tells me that the class is wrong for this container.
>
>OK, I got it, the class name should be RptFiltApp. I was trying to instantiate yet another instance of the form class on a page. Thanks for your patience, ladies and gentlemen. Yes, I know, it's Friday.
>
>BTW, I do have a question. On first line it errored out saying that the vcx file doesn't exist. In the debugger I saw the property held a valid filename. Maybe I shouldn't try this Set ClassLibrary at all, since this classlib is open by default?

If you would use NewObiect method (as stated in the title :)), you don't need set classlib. You can specify your class name as a parameter.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform