Hi, I was wondering if it is possible to reverse the way my enum variables work
In our storage XML Files all the data is stored as integers, which I want to translate into strings using a lookup table. I thought enums would be perfect for this but I can't work out how to get the string from the integer
e.g.
enum sourceType
{
SIM = 0,
ME = 1,
MC = 2,
SATNAV = 3
}
I want to be able to turn the integer 1 into the string "ME". As far as I can tell I can only get the integer 1 by doing sourceType.ME but that's no use to me.
Regards
D