Do you know the difference between static method and dynamic method? The method you have created with name static void main, is a static method, so static method can only access the static variables and other static methods. You may do some tricks using this way: public static void main (Args args) { MyClass o; o = new MyClass(args); o.run(); } void new (Args args) { m_enuMyEnum = args.parmEnum(); } void run () { //do process switch (m_enuMyEnum) { case MyEnum::Enum1: break; default: break; } }
Sonny Wibawa Adi
johnn_16 <[EMAIL PROTECTED]> wrote:
Hi, I would like to pass value from one form to another. Unfortunatly, the value must pass trought classes because the called form is called with a menuItem-->Action. When I pass the value with the args.parm() of the menuItem to the class, I lost the value. I can access it in the construct and main method of the class, but after that, I lost it. Also, in the Construct and Main method, I can't access variables in the classDeclaration neither the other method of the class.
Can anyone can explain me why? Help is greatly needed here and if you don't understand what I want, please ask me to re-explain.
Thanks!
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
_____
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
Yahoo! Groups Sponsor ADVERTISEMENT
click here
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.