[fpc-pascal] Property Tags
pascaldragon at googlemail.com
Wed Aug 4 14:45:40 CEST 2010
On 04.08.2010 14:17, Jorge Aldo G. de F. Junior wrote:
> i already know about virtual metods,
> by dynamic dispatch i mean to call a procedure by its name, at
> runtime, not at compile time...
> i simply dont know how to do it (maybe object pascal doesnt support this ?)
You could try to use TObject.MethodAddress (
but it might only work with published methods (I haven't tested it yet).
Also you need to declare a method type to which the returned pointer can
be cast to, so that you can call it like a "normal event handler".
More information about the fpc-pascal