[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

TObject.MethodAddress

Return the address of a method

Declaration

Source position: objpash.inc line 206

class function TObject.MethodAddress(

  const name: shortstring

):pointer;

Description

MethodAddress returns the address of a method, searching the method by its name. The Name parameter specifies which method should be taken. The search is conducted in a case-insensitive manner.

Errors

If no matching method is found, Nil is returned.

See also

MethodName

  

Return the name of a method.

FieldAddress

  

Return the address of a field.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.