> As always thanks for your considered response,
> I also liked your enum/string array const solution but still why have 2
> structures when 1 seems to be called for (an EnumStringArray Constant) since
> these are declared locally I dont usually have a scope problem.

I think it's important to remember that a large proportion of the applications of
enumerations are not display related.  Adding the fact that display readability and
code readability are different aims shows a strong reason for the separation of
enum and string... An alternative is to create a singleton class which manages
entries - Ala java style... I can outline how it works in an example if anyone's
interested...

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to