private Sub SQLBrowse(SQL As String)
Starter.SQLqueryString = SQL
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 340dip, 520dip)
p.LoadLayout("SQLDataBrowser")
SQLdialog.Initialize(Activity)
SQLdialog.Title = "e-trip"
SQLdialog.PutAtTop = True
Wait For (CallSub(Starter, "GetQueryResultSet")) Complete (Exist As Boolean)
If Exist Then
.....
......
SQLdialog.PutAtTop = True 'put the dialog at the top of the screen
Wait For (SQLdialog.ShowCustom(p, "OK", "", "")) Complete (Result As Int)
'just do nothing after OK
End Sub