Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newobject(...'pageframe') on a pageframe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00476863
Message ID:
00476903
Vues:
17
>>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.
>
>NewObject() only creates a new object, it does not add it to the container. So, as he says, it's time for a dark beer :)

Well, I'm not drinking beer :( Anyway, this is from the Help about NewObject method
NewObject Method
Applies To See Also

Adds a new class or object to an object directly from a .vcx visual class library or program.

Syntax

Object.NEWOBJECT(cObjectName, cClassName [, cModule [, cInApplication
[, eParameter1, eParameter2, ...]]])

cObjectName

Specifies the name used to reference the newly added class or object.

cClassName

Specifies the class or object from which the new class or object is added.

cModule

Specifies a .vcx visual class library or Visual FoxPro program (.prg, .mpr, .app, .exe, and so on) containing the class or object specified with cClassName. The default is a .vcx visual class library; you must include an extension if you specify a program.

Note A class library can have an alias. To specify a class or object from a class library with an alias, include the class library alias followed by a period and the object name.


VFP 6.0

I would suggest a cup of black coffee :)
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