Hi Amer, That should work, and Axapta class can not directly assign to member variable, use parameter method instead. You also need to instantiate the Args object.
Regards, Agus On 1/17/07, Amer Adnan <[EMAIL PROTECTED]> wrote: > > Dears, > > How can I pass a value from the args in the main(Args args), to a string > filed in my class. > > What I want to do is: > > Args arg; > arg.parm("some string"); > Myclass::Main(arg) > Â… > > > static Main(Args arg) > { > MyClass obj = new MyClass(); > obj.myVariable = arg.Parm(); > //myVaraible is decared as a str member in MyClass > > } > > The last statement [ obj.myVariable = arg.Parm(); ] gives an error: Wrong > argument types assignmentsÂ… > > > How can I solve this problem? > > > > > > Thank you all > amer > > --------------------------------- > Sucker-punch spam with award-winning protection. > Try the free Yahoo! Mail Beta. > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Visit www.axapta-knowledge-village.tk Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/