Complex Enum, or better soution??

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi

I am trying to come up with a way of representing a text format,
really i think it should but some values have a child value... all are
fixed:

Default
Number
--1,234
--1,234.00
--1234
--1234.00
--1.234568e+004
Date
--3/31/2004 3:13 PM
--Wednesday, March
--3/31/2004
Time
--3/31/2004 3:13 PM
--3:13:19 PM
--3:13 PM
Percentage
--1,234,00.00 %
--123400.00 %
Currency
--$1234.12.00


Any ideas?

Thanks

Tom
 
* Tom said:
I am trying to come up with a way of representing a text format,
really i think it should but some values have a child value... all are
fixed:

Default
Number
--1,234
--1,234.00
--1234
--1234.00
--1.234568e+004
Date
--3/31/2004 3:13 PM
--Wednesday, March
--3/31/2004
Time
--3/31/2004 3:13 PM
--3:13:19 PM
--3:13 PM
Percentage
--1,234,00.00 %
--123400.00 %
Currency
--$1234.12.00


Any ideas?

You can create one large enum:

\\\
Public Enum Format
Default
NumberFloatShort
NumberFloatLong
NumberIntegerShort
NumberIntegerLong
NumberScientific
DateShort
DateLong
DateScientific
...
End Enum
///
 
Back
Top