Hi, Try compile forward on your class. If your str variable is a new one and you have not done compile forward yet, then do it. BR Amit Agus Riyadi <[EMAIL PROTECTED]> wrote: 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 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 --------------------------------- Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. [Non-text portions of this message have been removed]