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:
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"?
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"?