Android Question Tap outside Msgbox2

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
i use an msgbox2 to interact with the user. I save the int value returned into a variable, that assume differents value, as you can see:

B4X:
Dim m As Int
m = Msgbox2 ( "Message", "Title", "YES", "MAYBE", "NOT", NULL );

If m = DialogResponse.NEGATIVE Then Return (m = -2)
          
If m = DialogResponse.POSITIVE Then (m = -1)
....
end if
          
If m = DialogResponse.CANCEL Then (m = -3)
....
end if


But, if I tap OUTSIDE the Msgbox2, I have a result that is "-3".

How do I have a null result, or something like "0"?
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User

As you can see above, I use all 3 buttons to do some action afterwards. So, I need to get a different value
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…