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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only