[fpc-devel] problem with "is" operator
drdiettrich at compuserve.de
Mon Apr 18 07:18:05 CEST 2005
Linuxer Wang wrote:
> 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