Files
open-insight/LSL2/OIEVENT/CLICK/CUST_INQUIRY.VIEW_EDIT_BUTTON.json
2024-03-25 15:12:53 -07:00

11 lines
956 B
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function msg, dialog_box\r\n$insert msg_equates\r\nequ NumCols to 14\r\n\r\nColMarks = str( @fm, NumCols-1 )\r\nRowData = .spec_info->rowdata\r\nLay = .spec_info->selpos<2>\r\nif RowData = ColMarks then\r\n MsgInfo = ''\r\n MsgInfo<micon$> = 'H'\r\n MsgInfo<mtext$> = 'There is currently no Layer# ':Lay:'...You must add first.'\r\n Void = msg( '', MsgInfo )\r\n return 0\r\nend else\r\n Title = 'Layer ':Lay\r\n convert @fm to @vm in RowData\r\n ReturnVal = dialog_box( 'CUST_INQUIRY2', @window, RowData:char(244):Title )\r\n convert @vm to @fm in RowData\r\n ReturnVal := @fm ;* for the last blank value\r\n if ReturnVal <> RowData and ReturnVal <> 'CANCEL':@fm then\r\n .spec_info->rowdata = ReturnVal\r\n @@window->savewarn = 1\r\n end\r\nend\r\nRETURN 0"
}
}
}