Send and recieve parameter string by args in MSD axapta


Send and recieve parameter string through args in axapta

 1. Send  
 void clicked()  
 {  
   Args args = new Args();  
   ;  
   Args.parm("retrive hell");  
   new MenuFunction(menuitemdisplaystr(abc_Param_String_Recieve), MenuItemType::Display).run(args);  
 }  
 2. Receive  
 public void init()  
 {  
   // super();  
   str paramString;  
   Args args;  
 ;  
   super();  
   args = new args();  
   paramString = element.args().parm();  
   info(strfmt("paramString = %1",paramString));  
 }