{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function sched_rpt1, send_event, msg\r\ndeclare subroutine end_dialog\r\n$insert msg_equates\r\n\r\nCusts = .customer_info->array<1>\r\nswap @vm:@vm with '' in custs\r\nif Custs[-1,1] = @vm then custs[-1,1] = ''\r\nDueDateFrom = .due_date_from->text\r\nDueDateThru = .due_date_thru->text\r\nOpen = .open_check->check \r\nClosed = .closed_check->check\r\nPlant = .plant->text\r\nif DueDateFrom or DueDateThru then\r\n if Open or Closed then\r\n\t\tDirToPrint = .send_to_printer->text\r\n\t\tRetVal = Custs:'*':DueDateFrom:'*':DueDateThru:'*':Open:'*':Closed:'*':DirToPrint:'*':Plant\r\n\t\tend_dialog( @window, RetVal )\r\n\tend else\r\n MsgInfo = ''\r\n MsgInfo = 'You must check an Open or Closed status.'\r\n MsgInfo = '!'\r\n Void = msg( '', MsgInfo )\r\n end\r\nend else\r\n MsgInfo = ''\r\n MsgInfo = 'You must have a from date or a thru date.'\r\n MsgInfo = '!'\r\n Void = msg( '', MsgInfo )\r\nend\r\nreturn 0\r\n" } } }