Well, Apart from anything.. the IS command is the same as
Object.inheritsfrom..

the = only evaluates to the specific class, not the subclasses and youd want
to use SameText, rather than = incase of spelling case issues.



On Tue, Jan 25, 2011 at 5:46 PM, Ross Levis <r...@stationplaylist.com>wrote:

> Just as a matter of curiosity really, anyone know if there is any
> difference in speed for these 2 operations.
>
>
>
> if abc is TMyObject then
>
>
>
> and
>
>
>
> if abc.Classname = ‘TMyObject’ then
>
>
>
> ?
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi@delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
> unsubscribe
>



-- 
Kyley Harris
Harris Software
+64-21-671-821
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to