Share this post

Link to post

Share on other sites

guinness 1,444

I use that exact same Function in the program SciTE Jump for the language menu, so even though Enum doesn't work with arrays (as iEvKI3gv9Wrkd41u put it) it's still a plausible work around. Just download the program in my signature and you'll see how I've implemented it for a 25 element array.

That's a lot of code to explain that Enum only works with normal $variable names.

I thought this was obvious & didn't need explaining.
Edited September 6, 2011 by guinness