[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TReader.FindMethod

Return the address of a published method.

Declaration

Source position: classesh.inc line 1151

protected function TReader.FindMethod(

  ARoot: TComponent;

  const AMethodName: String

):Pointer; virtual;

Description

FindMethod will search for the method in ARoot. If it isn't found there, then it will call a OnFindMethod handler, if one is installed, passing it the method name AMethodName, the result pointer and a variable which says whether an exception should be raised if no method with name AMethodName is found.

If the method cannot be found and the OnFindMethod returns True, then an exception will be raised.

See also

TReader.OnFindMethod

  

Handler to find or change a method address.

TFindMethodEvent

  

Occurs when the streaming process needs to locate a method

The latest version of this document can be found at lazarus-ccr.sourceforge.net.