Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exclude VCX from a project
Message
From
07/07/2003 15:19:32
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00806761
Message ID:
00807608
Views:
20
Hi Larry,

I tried to see how #2 works but so far I cannot make it work. I put the following coding in a form init():

set classlib to myclasslib
ocreatetxt = createobject("mytxt") && mytxt is a class in myclasslib.vcx
set classlib to myotherclasslib
this.addobject("oaddtxt", "mytxt")
this.oaddtxt.visible = .t.

or

onewtxt = newobject("mytxt", "myclasslib")
this.addobject("oaddtxt", "mytxt")
this.oaddtxt.visible = .t.

Both codings will generate the error "Class defintion MYTXT is not found." when trying to execute the this.addobject statement.


Note: I have also added the object mytxt to the form from Form Designer. I guess this should also load the class into the memory. Am I right?


Thank you,

Peter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform