Hello everyone.
It's about a little script with SQLite.
In the starter module I wrote this:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
In an activity module, I try to insert datas in a table (pvpt) like this:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
where sep = "','" and every data is a string
But... when I want to read the result by a SELECT syntax to load a listView, the new line doesn't appear, and the log prints this:
where the datas after Aaa and N are empty (they represent parameters as numbers).
So, in a so little script, do you see a mistake which can help me to see how to solve this ?
Thanks...when you'll have time !
			
			It's about a little script with SQLite.
In the starter module I wrote this:
			
				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)
	In an activity module, I try to insert datas in a table (pvpt) like this:
			
				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 = "','" and every data is a string
But... when I want to read the result by a SELECT syntax to load a listView, the new line doesn't appear, and the log prints this:
INSERT INTO pvpt(pays,villes,lat,ns,lon,ew,abrv,ajout) VALUES ('France','Aaa','','N','','E','A','1')
where the datas after Aaa and N are empty (they represent parameters as numbers).
So, in a so little script, do you see a mistake which can help me to see how to solve this ?
Thanks...when you'll have time !