ZadehDyn


I need to fill my enum values from datatable. Is there any way to do it with VB.Net.

Re: Can I Create an enum on Runtime, or change Enum values or member Names ?

Muhammad Akhtar Shiekh


Hi Dear,

Runtime enum creation is not possible in .NET (According to my little bit knowledge about .NET).......

but this link can help you for alternative ways of dynamically enum genration.

http://www.thescripts.com/forum/thread514597.html

Regards

Muhammad Akhtar Shiekh






Re: Can I Create an enum on Runtime, or change Enum values or member Names ?


Re: Can I Create an enum on Runtime, or change Enum values or member Names ?

cybertaz69

hi Zadeh

Enum are tools for design time to let the programmer have a engilsh word that repersents a value....

At runtime the code doesn't care what the engish word is it just wants the value. So a collection would be a better opption at run time... Collections come in all different types so its easy to find one that fits your dataset....