General information
Category:
Forms & Form designer
Title:
Difference between thisForm.addObject() and newObject()
Hi all,
I want to "attach" a non visual object to a form (to be used along the code in the form).
I would like to know what are the differences between:
thisForm.addObject('myObjectName', 'myClass')
and
thisForm.myObjectName = newObject('myClass') && of course myObjectName is a defined property
Are there any advantages on using one or the other? Which one is better in terms of memory release (garbache collection)? Do I have to have special precautions with one or the other?
I think that the same applies to ADD OBJECT in DEFINE CLASS (versus myClass.myObject = newObject()), does it?
Thanks in advance,
Javier.
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