RAD Studio VCL Reference
TReader.OnFindMethod Event

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

property OnFindMethod: TFindMethodEvent;
__property TFindMethodEvent OnFindMethod;

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!