>>Would you have a problem if you create a separate program with class definition only?
>
>Actually I figured out that it has to be after all the MAIN code. Like a function or procedure. This is why it's not a bad thing that you didn't get involved with a bunch of other stuff, Nadya. If I was as focused as you, I would already know this kind of stuff. :-)
It didn't occur to me that you were trying to put the class definition in the middle of the code.
If it's not broken, fix it until it is.
My Blog