On Tue, 25 Feb 2003, Olle Raab wrote:
> Is it possible ? > > In details: > > Suppose: > > program Test; > > type > TClassA = class; > TClassB = class(TClassA); > TClassC = class(TClassA); > > > procedure P( x: TClassA); > > begin > ... > end; > > begin > P(TClassB.Create) > end. > > > > If I watch x inside P in the IDE, i see it is of type TClassA. > > But I want to know it's runtime type, that is if it is TClassB or TClassC. Check the function x.classname It returns the class name. Michael. _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal