Hi,
I have two activity, first activity contain EditText and Button, I want to pass query to next activity
to load webview..
my example code is given below..
Next activity (SearchCase) contain...
I have two activity, first activity contain EditText and Button, I want to pass query to next activity
to load webview..
my example code is given below..
B4X:
Sub Btn_Click
Dim StrQry as string
If txtFrom.Text<>"" Then
StrQry="Select * from tbl_Case where date='"& txtFrom.Text&"'"
End If
StartActivity(SearchCase) 'In this activity i want to use StrQry
'How can i use this variable in this activity
End sub
Next activity (SearchCase) contain...
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
WebViewSearchCase.LoadHtml(WebviewDesign.ExecuteAddressHtml(Calculation.Sqlcnn,Calculation.SearchCaseQuery, Null, 0, True))
End Sub