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...

B4X:
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
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
Top