Dim Answ As Object
Dim Txt As String
Txt = "Do you really want to attach a file?"
Answ = Msgbox2Async(Txt, "A T T E N T I O N", "Yes", "", "No",Null,False) ' MessageBox
Wait For (Answ) msgbox_result(result As Int)
'Choose Documents Only
If B4XComboBoxSelectType.SelectedIndex=1 Then
If result = DialogResponse.POSITIVE Then ' If return value is Yes then
Starter.FU.Show("application/*","Choose file")
Else
ToastMessageShow("Nothing Selected",True)
End If
End If
'Choose Audios Only
If B4XComboBoxSelectType.SelectedIndex=2 Then
If result = DialogResponse.POSITIVE Then ' If return value is Yes then
Starter.FU.Show("audio/*","Choose file")
Else
ToastMessageShow("Nothing Selected",True)
End If
End If
'Choose Images Only
If B4XComboBoxSelectType.SelectedIndex=3 Then
If result = DialogResponse.POSITIVE Then ' If return value is Yes then
Starter.FU.Show("image/*","Choose file")
Else
ToastMessageShow("Nothing Selected",True)
End If
End If
'Choose Videos Only
If B4XComboBoxSelectType.SelectedIndex=4 Then
If result = DialogResponse.POSITIVE Then ' If return value is Yes then
Starter.FU.Show("video/*","Choose file")
Else
ToastMessageShow("Nothing Selected",True)
End If
End If