G
Guest
Really what I want is an enumeration that returns strings rather than
integers. Since, as far as I know, that's not possible, I thought to create
a class with shared members that return strings. Kind of like a qualified
constant list so that you can type the name of the class and then get, via
intellisense, a list of the possible values.
I thought that if I created a class with nothing but shared variables, I
wouldn't have toi instantiate it before I used it, since the members were
all shared. Kind of like using the Math object. You just use it, don't
declare one first.
However, it's not working. The compiler keeps complaining that I don't have
an instance. How do I create a class that acts like a global instance?
Thanks.
Jerry
integers. Since, as far as I know, that's not possible, I thought to create
a class with shared members that return strings. Kind of like a qualified
constant list so that you can type the name of the class and then get, via
intellisense, a list of the possible values.
I thought that if I created a class with nothing but shared variables, I
wouldn't have toi instantiate it before I used it, since the members were
all shared. Kind of like using the Math object. You just use it, don't
declare one first.
However, it's not working. The compiler keeps complaining that I don't have
an instance. How do I create a class that acts like a global instance?
Thanks.
Jerry