====== End_Dialog subroutine ====== ==== Description ==== Use to close a dialog box created by Dialog_Box or Create_Dialog. ==== Syntax ==== **End_Dialog**(//dialogname//, //result//) ==== Parameters ==== The End_Dialog subroutine has the following parameters. ^Parameter^Description^ |//dialogname//|Pass the name of the running window.| |//Result//|Dialog procedures should be written so that any data needing to be returned to the calling window is returned in //result//.\\ | Use End_Dialog to destroy your dialog window, and, optionally, to return a result to the caller. ==== Notes ==== When using End_Dialog within an event handler one must end the event with a 'Return 0'.\\ \\ Use [[end_dialog|End_Dialog]] to close all windows started using the Dialog_Box or Create_Dialog function.\\ \\ When using Dialog_Box on a databound form, the End_Dialog() call does not handle the unlocking of data. Send the CLEAR event prior to the End_Dialog() call and unlocking will occur. ==== See Also ==== [[create_dialog|Create_Dialog()]], [[dialog_box|Dialog_Box()]], [[end_window|End_Window()]], [[set_dialog_info|Set_Dialog_Info()]], [[collector_window_overview|Chapter 10: Programming Techniques Collector Windows in OpenInsight]] ** **