I like this a lot !!!: TGalleryStatusDescriptions: array [Low(TGalleryStatus)..High(TGalleryStatus)] of String =
You don't have to do that, you can just do this: TGalleryStatusDescriptions: array[TGalleryStatus] of String = Just like for booleans you can do: BoolStr: array[Boolean] of string = ('N', 'Y'); FWIW most has already been covered but comparisons are also quicker because they are ordinal instead of string based (even with the string comparison speed up in D2007). Being able to use strings in a case statement is a pretty popular QC request that never seems to get any headway. Generally I prefer a constant array if I want to map a type to a string representation although I use the TypeInfo code that others have posted when prototyping or demostrating issues. Although I didn't use it in the FlowPanel example that ships with Delphi, not sure why I didn't now. Oh well. cheers, Jeremy _______________________________________________ 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