Also, enumerated types are ordinal types, this means you can use them in
case statements instead of having to use nested if's (which is what you
would have to do with strings)
Cheers Tim.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Leigh Wanstead
Sent: Thursday, 10 May 2007 9:23 AM
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Why use a set when a string will work OK (and less
code)?

Take advantage compile time checking. Strong typecast check.

Regards
Leigh
http://www.smootharm.com

_______________________________________________
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 [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to