[fpc-devel] problem with "is" operator

DrDiettrich drdiettrich at compuserve.de
Mon Apr 18 07:18:05 CEST 2005

Linuxer Wang wrote:
> Hello,
> Can anybody tell me how can I know which specific type an instance of
> class is?

Check the ClassType or ClassName.

> The "is" operator seems weird when interface is used.

Add a GetObject method to your interfaces, that returns the object that
implements the interface. Then you can use the class specific checks.


More information about the fpc-devel mailing list