[DUG] Object is Object vs Object.Classname = 'Object'

Kyley Harris Kyley at harrissoftware.com
Tue Jan 25 17:51:14 NZDT 2011


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 <ross at 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 at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>



-- 
Kyley Harris
Harris Software
+64-21-671-821
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110125/3cfe1e3b/attachment.html 


More information about the Delphi mailing list