When I dblclick on an array I open a form to do things, the form has a "Close" button , but although the form disappears , it stays open and wont close,what am I missing ?
Everything else works just fine, just cant get rid of the form !!!!
Code on form "Close" button
display array snippet
code to open Form, activate then close
Everything else works just fine, just cant get rid of the form !!!!
Code on form "Close" button
Code:
'Close current form or browse window. DIM mode as c mode = parentform.mode_get() 'If the form is in Enter or Change mode, first save the changes before closing the form if mode = "ENTER" .or. mode = "CHANGE" then parentform.commit() 'Check to see if the record was successfully saved if parentform.mode_get()<>"VIEW" then ui_msg_box("Unable to save your changes","Please correct and save, or discard your changes", UI_STOP_SYMBOL) end end if end if 'Close the form parentform.close(.f.)
Code:
[%O==FmtShowAcft(eval(value))%.120,10indexA^#base_show_acft!acft_dblClick];
Code:
if a_dlg_button = "acft_dblclick" then a_dlg_button = "" frm = form.load("Logging_Master_edit","dialog","center","center") frm:Tables:Logging.filter_expression = "unique = "+quote(base_show_acft[indexA].unique) frm:Tables:Logging.order_expression = "Reg" frm:Tables:Logging.query() frm.show() frm.activate() base_show_acft[IndexA].reg = frm.reg.value base_show_acft[IndexA].ac_unique = frm.ac_unique.value base_show_acft[IndexA].op_unique = frm.op_unique.value frm.close() ui_modeless_dlg_refresh(dlg_title) end if
Comment