Hello every pro,
I use the code below to insert datas in a table which name is pvpt (for geography)
where sep = "';'"
When I want to read the result by a SELECT word, I have any return, the line is not inserted, and the log prints this:
After 'Aaa' and After 'N' the variables are empty. They are only number in textx areas, like the other variables (All the variables are strings). A reload of a listView shows me that the line inserted is not saved.
The initialization of the database made with DB Browser is done in the Starter Module:
So, it's a so tiny use that I'm not able to see where is the mistake.
Has someone an idea how to solve this ?
thanks much ...when you'll have time !
I use the code below to insert datas in a table which name is pvpt (for geography)
B4X:
synt="INSERT INTO pvpt(pays,villes,lat,ns,lon,ew,abrv,ajout) VALUES " & _
"('" & _
txtPays.Text & sep & _
txtSaisieNelleVille.Text & sep & _
txtLatitude.text & sep & _
NS & sep & _
txtLongitude.Text & sep & _
EW & sep & _
cap & sep & _
1 & _
"')"
Starter.SQL1.ExecQuery(synt)
where sep = "';'"
When I want to read the result by a SELECT word, I have any return, the line is not inserted, and the log prints this:
INSERT INTO pvpt(pays,villes,lat,ns,lon,ew,abrv,ajout) VALUES ('France','Aaa','','N','','W','A','1')
After 'Aaa' and After 'N' the variables are empty. They are only number in textx areas, like the other variables (All the variables are strings). A reload of a listView shows me that the line inserted is not saved.
The initialization of the database made with DB Browser is done in the Starter Module:
B4X:
If File.Exists(File.DirDefaultExternal, "pev.db") = False Then
File.Copy(File.DirAssets, "pev.db", File.DirDefaultExternal, "pev.db")
End If
SQL1.Initialize(File.DirDefaultExternal, "pev.db", True)
So, it's a so tiny use that I'm not able to see where is the mistake.
Has someone an idea how to solve this ?
thanks much ...when you'll have time !