copy(obj: OleObject) updating;
The copy method of the OleObject class copies an existing OLE object image to another instance of the OleObject class. The copy method handles any combination of transient, permanent, system-defined, and non-system-defined class objects. An exception is raised if this method is invoked from a server method.
The following example shows the copying of the contents of an OLE control (transient) to permanent storage.
vars
obj : OleObject;
begin
beginTransaction;
create obj;
obj.copy(self.aOleControl.oleObject); // Copy OLE control object
// to permanent object.
commitTransaction;
...
end;