{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function msg\r\ndeclare subroutine create_note\r\n$insert msg_equates\r\n$insert logical\r\n\r\nif .status->value = 'C' then\r\n\tMsgInfo = ''\r\n\tMsgInfo = 'This quote is already closed...'\r\n\tMsgInfo = '!'\r\n\tAns = msg( '', MsgInfo )\r\nend else\r\n\tMsgInfo = ''\r\n\tMsgInfo = 'This will permanently close the quote and will NEVER be allowed to be used in an order. Are you sure you wish to continue.'\r\n\tMsgInfo = '?'\r\n\tMsgInfo = 'BNY'\r\n\tAns = msg( '', MsgInfo )\r\n\tif Ans = 1 then\r\n\t .status->value = 'C'\r\n\t @@window->savewarn = true$\r\n\tend\r\nend\r\nRETURN 0" } } }