16-07-2008, 07:08 PM
I know in C# you can get the length of the enum with this:
But that doesn't help us with vb6 :p
Code:
enum Stats : byte
{
Strength = 1,
Defense,
Speed,
Magic
}
Code:
int Stat_Count = Enum.GetValues(typeof(Stats)).Length;
But that doesn't help us with vb6 :p