Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Objects in a Class
Message
De
21/06/2001 10:00:57
 
 
À
21/06/2001 07:09:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00521809
Message ID:
00521885
Vues:
18
>ThisForm.AddProperty("TestObject")
>ThisForm.TestObject = NewObject("Test","NewLibrary","TestApp.exe")
>When I Instantiate the New Class, via command window, the 'TestObject' is not there.

This is simply adding an object reference to a property on your form, which doesn't do much. TO actually add TeswtObject, use the addobject or newobject method of the form:

Thisform.NewObject('TestObject', 'test', 'newlibrary')
Thisform.TestObject.Visible = .T.


Notice I also havce to make it visible there.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform