Hi,
i use the follow Code:
- Start (First Run) is all o.k.
- if User dont select a Radiobutton (rbtn....checked) and Click on Start the Loop run a second (while rbtn_check <2)
- on this Point the Code Crash (at DialogPanel.AddView(pnl.......)
thanks for help
i use the follow Code:
B4X:
Do While rbtn_check < 2
rbtn_check=0
Dim sf As Object = cld.ShowAsync("Export","","Start"),"Cancle",Null,False)
cld.SetSize(90%x,hoehe + 150dip)
Wait For (sf) Dialog_Ready (DialogPanel As Panel)
DialogPanel.AddView(pnl, 0, 0, DialogPanel.Width, DialogPanel.Height) 'pnl is a Panel
Wait For (sf) Dialog_Result (ret As Int)
If ret=DialogResponse.NEGATIVE Then Exit
If rbtn_port_ja.Checked=True Or rbtn_port_nein.Checked=True Then rbtn_check=1
If rbtn_ref_ja.Checked=True Or rbtn_ref_nein.Checked=True Then rbtn_check=rbtn_check+1
If rbtn_check<2 Then
MsgboxAsync(Starter.loc.Localize("txt_GMA_Exp_AU"), Starter.loc.Localize("txt_GMA_Exp_AU"))
wait for Msgbox_result (r As Int)
End If
Loop
- Start (First Run) is all o.k.
- if User dont select a Radiobutton (rbtn....checked) and Click on Start the Loop run a second (while rbtn_check <2)
- on this Point the Code Crash (at DialogPanel.AddView(pnl.......)
thanks for help