This code works well with B4a, as replace it in B4I ?
B4X:
Msgbox2Async("","the customer already exists, do you want to overwrite it?", "yes", "", "No", Null, False)
Wait For Msgbox_Result (Result As Int)
If Result = DialogResponse.NEGATIVE Then
Return
else
end if