Sign in Join
FPDoc Onlineexperiment

TReader.FindMethod function

Member of TReaderprotectedIn unit Classes

Return the address of a published method.

Declaration

pascal
function FindMethod(ARoot: TComponent; const AMethodName: RawByteString)
: CodePointer; 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.