ZadehDyn
I need to fill my enum values from datatable. Is there any way to do it with VB.Net.
Visual Basic General
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
This article might help;
http://msdn.microsoft.com/msdnmag/issues/06/08/CuttingEdge/default.aspx
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....