CloneObject
This cool method lets you create an exact (well, almost exact) duplicate of an object. The only difference between the two is the name you assign the new one. The only bad thing we have to say about CloneObject is that it's available only at design-time—we can think of all kinds of cool things we could do with it at runtime.
Usage |
oObject.CloneObject( cNewName ) |
Example |
* Assume the Form Designer is open and a single object (that * sits right on the form) is selected. = ASELOBJ(aObject) && Get a reference to the selected object = ASELOBJ(oContainer, 1) && Get a reference to the form aObject[1].CloneObject( "NewOne" ) * Now we can reference it through the container ? oContainer[1].NewOne.Name && Returns "NewOne" |
See Also |