Cableguy Expert Licensed User Longtime User Feb 25, 2016 #1 Hi guys I'm using a modal form as a kind of "custom" dialog... All is good, except that I want to return a value just before calling close, which is triggered by a button click event... Code: Copy sub button1_Action MyForm_Close 'in this order, the form closes but nothing is returned Return value End Sub
Hi guys I'm using a modal form as a kind of "custom" dialog... All is good, except that I want to return a value just before calling close, which is triggered by a button click event... Code: Copy sub button1_Action MyForm_Close 'in this order, the form closes but nothing is returned Return value End Sub
Daestrum Expert Licensed User Longtime User Feb 25, 2016 #2 Would it not return the value to the eventhandler, probably easier to set a global variable and read that after the MyForm.Show() call. Upvote 0
Would it not return the value to the eventhandler, probably easier to set a global variable and read that after the MyForm.Show() call.
Cableguy Expert Licensed User Longtime User Feb 25, 2016 #3 I went with a global var plus a dedicated sub to retrieve it Upvote 0