Hi,
I am new to C# so forgive my ignorance.
I need to write a month 'number' to a DB, ie January = 1, March=3 etc etc...
I have the month description in a combo box. I used an enum " enum
month{January = 1,February, March....... etc } " to load the combo.
I wanted to use the same to resolve the String retrieved form the combo into
the actual enum value.
How would I do this ??
I attempted to do an 'Array.binarysearch' having populated an array with the
months of the year. That didnt work either.
Any help appreciated.
Jon.