[Overview][Resource strings][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'tiObject' (#tiopf)

TtiObject.Clone

Creates a cloned instance of this object

Declaration

Source position: tiObject.pas line 463

public function TtiObject.Clone: TtiObject; virtual;

Description

Creates a cloned instance of this object. You must override and typecast if to be used.

ToDo: We have to address two issues with assign:

  1. What if our object contains a pointer to another object that it owns
  2. What if our object contains a list of other objects

If we are to be creating new instances of owned objects, we must work out what to do about ObjectState and OIDs


Documentation generated on: 2017-08-16