Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newobject(...'pageframe') on a pageframe
Message
 
 
À
16/02/2001 17:30:35
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00476863
Message ID:
00476888
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform