posted 18 years ago
I have a simple enumerated type:
There is an object that uses this type:
I read these values out of a database, where the reqtype (and reqstatus) are integers.
Hence, the variable "type" given reqtype, above. So, here, conceptually, is what I'm trying to do (in fact I tried this literally and it doesn't work). Note what I'm trying to use as the constructor in the request constructor:
How does one do this, short of using a switch statement?
TIA
-------<br />Thanks & regards,<br />anw