TObject.GetInterfaceByStr function
Return an interface based on its GUID.
Declaration
function GetInterfaceByStr(const iidstr: shortstring; out obj): BooleanDescription
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.
