Can you post the error message?
Here are the error messages :
Calling with Dim Dt As Long = DateUtils.SetDate(13, 1, 1)
====================================
LogCat connected to: 015d490650481a03
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
org.firebirdsql.jdbc.field.TypeConversionException: Error converting to long.
Error: Server Error
Calling with
Dim Dt As String = "1/31/13" or String = "13/1/31" or String = "31/1/13"
===============================================
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.IllegalArgumentException
Error: Server Error
Codes to call execquery
Sub ExecQ(Tag As String)
Dim cmd As DBCommand
cmd.Initialize
If(Tag = "Stock") Then
Private Div,Cnd As String
'Dim Dt As Long = DateUtils.SetDate(13, 1, 1)
Dim Dt As String = "13/1/31"
Div = "6"
Cnd = "Good"
cmd.Name = "select_stock"
cmd.Parameters = Array As Object(Div,Dt,Cnd)
reqManager.ExecuteQuery(cmd, 0, Tag)
End If
End Sub