Hi All,
I've come across a new issue, whether it is the newer version of B4A, the version of android etc I don't know.
When I hit the objCursor.GetString("SurveyTemplateID") line in the below code I get this error:
java.lang.IllegalArgumentException: column 'SurveyTemplateID' does not exist
This issue raised it's head the other day and I resolved using GetString2 and the index of the column. My code seems to be OK and used to work so I am somewhat confused as to why it's suddenly failing. Any thoughts? Plainly the column does exist and there is data present in the output so this is very weird.
Regards
Jon
I've come across a new issue, whether it is the newer version of B4A, the version of android etc I don't know.
When I hit the objCursor.GetString("SurveyTemplateID") line in the below code I get this error:
java.lang.IllegalArgumentException: column 'SurveyTemplateID' does not exist
This issue raised it's head the other day and I resolved using GetString2 and the index of the column. My code seems to be OK and used to work so I am somewhat confused as to why it's suddenly failing. Any thoughts? Plainly the column does exist and there is data present in the output so this is very weird.
Regards
Jon
B4X:
Dim objCursor As Cursor = Common.sqlObject.ExecQuery2("SELECT SurveyTemplateID FROM SUR_SurveyTemplates WHERE OriginalSurveyTemplateID = ?", Array As String(OriginalSurveyTemplateID))
If objCursor.RowCount>0 Then
objCursor.Position = 0
SurveyTemplateID = objCursor.GetString("SurveyTemplateID")
End If