In my WinForms app I'm loading a value from an XML file and converting it to
an Enum type I have called "ProductID". Here's the line of code I've used to
accomplish that:
SysInfo.Data.Admin.ProductID = (DataObjects.Constants.ProductID)
Enum.Parse(typeof(DataObjects.Constants.ProductID),
table.Rows[0]["ProductID"].ToString(), true);
One of the key things here is the use of 'Enum.Parse'. I'm now tryng to do
something similar in my Pocket PC app but I discovered that Enum.Parse does
not exist in the Compact Framework. So I'm wondering how I could accomplish
this. In essence, I'm trying to convert a string to an Enum type.
--
Robert W.
Vancouver, BC
www.mwtech.com