Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Objects in a Class
Message
From
21/06/2001 10:00:57
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00521809
Message ID:
00521885
Views:
17
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform