static void Jimmy_activateWindow(Args _args) { FormRun fr; Args args = new Args(); CustTable CustTable = CustTable::find("WIB-CHN"); ; args.name(formstr(CustTable)); args.record(CustTable); fr = classfactory.formRunClass(args); fr.init(); fr.run(); fr.detach(); // info("Form was shown, now the infolog will be in front of it"); // infolog.viewUpdate(); infolog.activateWindow(fr.hWnd());//get focus from the form }