Midware TServerObject.CopyFromReference

From Overbyte
Jump to: navigation, search

Main page -> Midware component reference -> TServerObject -> CopyFromRefrence

Definition

procedure CopyFromReference(Reference:TServerObject); virtual;

Description

CopyFromReference is called by the ORB when TServerObject has been instanciated and before the Execute method is called. A TServerObject is a component that can be dropped on a TForm at design time and have properties assigned using the IDE byt the programmer at design time. At runtime, new instances are created to satisfy client requests. Those instances are created by the ORB when needed. CopyFromReference is called by the ORB to give a chance to TServerObject to copy property values from the reference object dropped on the form.

Use of CopyFromReference is only needed if you write a TServerObject that has new published properties or events. In that case, you must use override CopyFromReference to copy those properties and events from the reference object dropped on the server form to the newly instanciated object.