Midware TServerObject.BuildFunctionCode

From Overbyte
Revision as of 09:58, 9 May 2011 by Marie (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>