08-08-2012 09:06 AM
Hi,
I have an enum which i store a list of strings and then when the user changes the enum to a different item it returns a value but can the returned value be changed?
For example
Item name value Item 0 0 item 1 1 item 2 2 item 3 3
but what i would really like is this;
Item name value Item 0 0 item 1 7 item 2 8 item 3 12
Is there anyway of doing this without adding a number on after the value is returned?
Many thanks for your help.
James
08-08-2012 09:12 AM - edited 08-08-2012 09:13 AM
08-08-2012 09:15 AM
fantastic, i`ve been looking for this all day.
Thanks for your help.
08-08-2012 09:21 AM
just found the strings and values property for the enum which does exactly what i need.
08-08-2012 09:26 AM
Yes you can read those property but you will not beable to write. Enum won't allow you to do that but in ring you can do both.
08-08-2012 09:29 AM
yep just found that out so the text ring will do exactly what i need. I have always wondered what the difference between them was.
thanks for you help.
08-08-2012 09:38 AM
May be this would help you to understand the difference.