Difference between revisions of "Midware TServerObject.BuildFunctionCode"
Jump to navigation
Jump to search
(Created page with ' Main page -> Midware component reference -> TServerObject -> [[Midware_TServerObject.BuildFunctionCod…') |
|||
Line 10: | Line 10: | ||
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. | 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> |
Latest revision as of 09:58, 9 May 2011
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>