The Args class

March 8, 2010 No comment

The args class is probably the class u use most in Ax, and this probably even without knowing. This class is used to give arguments from one object to a new object. For example when you click on a menu-item to open a class, the menu-item will pass a args-object to Main-Method of your class.
The example under need will open the EmplTable-form and pass through the args-object.

Args args = new Args(formstr(EmplTable)); 
FormRun formRun = ClassFactory.formRunClass(args); 
; 
formRun.init(); 
formRun.run(); 
formRun.wait();

The Args-object has some interesting properies: