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

Cableguy

Expert
Licensed User
Longtime User
I went with a global var plus a dedicated sub to retrieve it
 
Upvote 0
Top