I have this small table in ORACLE where I want to keep colors:
[tt]
COLOR_ID COLOR_DESC
0........White
1........Blue
2........Green
3........Salmon[/tt]
I know I can use:[tt]
System.Drawing.ColorTranslator.FromWin32(&HFFFFFF&)[/tt]
and &HFFFFFF& gives me White color (&HFF0000& gives me Blue, etc.)
I want to keep colors somehow in my data base to avoid Select Case statements or a bunch of IF statements in my code.
Two questions:
1. Is that the best way to approach colors?
2. How can I keep Colors in data base? What format should the column be? String? Integer?
Have fun.
---- Andy