Midware TServerObject.BuildFunctionCode

From Overbyte
Jump to navigation Jump to search

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

Definition

procedure BuildFunctionCode: virtual;

Description

BuildFunctionCode will initialize FFunctionCode with the function code handled by the ServerObject. Default to the class name without TServerObject.

BuildFunctionCode is called by the ORB (Object Request Broker) when building his object table. Most TServerObject do not need to override this method unless it wants to have a FFunction code not derived from the class name.

Example

<syntaxhighlight lang="delphi">

MWBuffer1.First;
   while not MWBuffer1.Eof do begin
       Memo1.Lines.Add(MWBuffer1.RecordToString);
       MWBuffer1.Next;
   end;

</syntaxhighlight>