System.Classes.TReader.OnFindMethod

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnFindMethod: TFindMethodEvent read FOnFindMethod write FOnFindMethod;

C++

__property TFindMethodEvent OnFindMethod = {read=FOnFindMethod, write=FOnFindMethod};

Properties

Type Visibility Source Unit Parent
event public
System.Classes.pas
System.Classes.hpp
System.Classes TReader

Description

Occurs each time the reader object reads an event, which is a method-pointer property, for an object.

OnFindMethod is used internally by the IDE for reading events. It can also be used to write a handler to ask the user how to handle missing methods.

If the reader cannot locate the named method assigned to the method pointer, it sets the Error parameter of the OnFindMethod handler to true. The handler can set Error to false, which prevents FindMethod from raising an exception when the handler returns.

OnFindMethod is an event handler of type System.Classes.TFindMethodEvent.

See Also