B4J Question Modal Form Close/return value

Cableguy

Expert
Licensed User
Longtime User
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
 
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
I went with a global var plus a dedicated sub to retrieve it
 
Upvote 0
Back
Top