Yes, but it's not worth the very large effort required.
Basically, you would retrieve the list from the database, then create a source module (*.vb) dynamically (i.e. via string concatenation) that contains your enum, then call the vb or CSharp compiler (csc.exe), then late-bind to the resulting assembly.
Try using an ArrayList collection instead.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first
I have a co-worker thats enum crazy, although I think that using collections would be much easier. Just wasn't sure if maybe there was an easy way to get the best of both worlds.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.