I am new to B4Android so pardon my question if it seems obvious to everyone. I have a Spinner control that list the States that the Customers are in. When the user selects the Sate, I pass that value to the Dbutils routine below, but There is a problem with the "Value" not being the correct type for the routine to process it. I have tried various scenarios but cannot get it to work. Any suggestions?
Sub spinState_ItemClick (Position As Int, Value As Object)
wvCustomers.LoadHtml(DBUtils.ExecuteHtml(SQL1, "SELECT CustName as Name,City,StateID as State,Postalcode as Zip FROM Customers where trim(StateID) = ? order by CustName " , Value , 0,True))
wvCustomers.Visible=True
End Sub
:sign0163:
Sub spinState_ItemClick (Position As Int, Value As Object)
wvCustomers.LoadHtml(DBUtils.ExecuteHtml(SQL1, "SELECT CustName as Name,City,StateID as State,Postalcode as Zip FROM Customers where trim(StateID) = ? order by CustName " , Value , 0,True))
wvCustomers.Visible=True
End Sub
:sign0163: