MenuFunction menuFunction; Args args; ; args = new Args(this); args.record(MyRecord); args.menuItemType(MenuItemType:: Display); MenuFunction = new MenuFunction(MenuItemDisplayStr(MyForm), MenuItemType:: Display); MenuFunction.run(args);