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

# TFindMethodEvent

Occurs when the streaming process needs to locate a method

## Declaration

`type TFindMethodEvent = procedure(`
`Reader: TReader;`
`const MethodName: String;`
`var Address: Pointer;`
`var Error: Boolean`
`) of object;`

## Description

If a TReader instance needs to locate a method and it doesn't find it in the streamed form, then the OnFindMethod event handler will be called, if one is installed. This event can be assigned in order to use different locating methods. If a method is found, then its address should be returned in Address. The Error should be set to True if the reader should raise an exception after the event was handled. If it is set to False no exception will be raised, even if no method was found. On entry, Error will be set to True.