RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.OnFindMethod Event

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

Pascal
property OnFindMethod: TFindMethodEvent;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!