Sign in Join
FPDoc Onlineexperiment

TObject.GetInterfaceByStr function

Member of TObjectpublicIn unit System

Return an interface based on its GUID.

Declaration

pascal
function GetInterfaceByStr(const iidstr: shortstring; out obj): Boolean

Description

GetInterfaceByStr returns in obj a pointer to the interface identified by iidstr. The function returns True if the interface is indeed implemented by the class, or False otherwise.

The iidstr is the unique GUID by which the interface was declared.

Errors

The function returns false if the requested interface is not implemented.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.