Args args = new Args(); ; switch (_menuItemName) { case menuitemoutputstr(PurchPackingSlipCopy) : args.record(vendPackingSlipJour); new Menufunction(menuitemoutputstr(PurchPackingSlipCopy),MenuItemType::Output).run(args); break; case menuitemoutputstr(PurchPackingSlipOriginal) : args.record(vendPackingSlipJour); new Menufunction(menuitemoutputstr(PurchPackingSlipOriginal),MenuItemType::Output).run(args); break; case menuitemoutputstr(PurchPackingSlip) : args.record(vendPackingSlipJour); new Menufunction(menuitemoutputstr(PurchPackingSlip),MenuItemType::Output).run(args); break; } Args args = new Args(); FormRun formRun; ; args.name( formstr(SalesTable) ); args.caller(this); args.record(salesTable); args.parm("OrderAmendment"); formRun = classFactory.formRunClass( args ); formRun.init(); formrun.run(); formrun.wait();