Last question for this year
In my db I use districts
I wants to show a Listview with only the select districts
But also need other variable off this row
There are 270 districts in the dB, but I will have about 30 left over at the end, after filtering.
I know that favot(32), mapc(32 is not enough in my case.
This is my code and I can not find where the error is.
Dim favot(32) As String
Dim mapc(32) As String
main.aron = "Reuilly"
Dim cur As Cursor
Dim intCount As Int
SQL.Initialize(File.DirRootExternal, "VisitParijs/visit.db", False)
intCount = SQL.ExecQuerySingleResult("SELECT count(*) FROM visit")
cur = SQL.ExecQuery2("SELECT MapNaam, Regelonder, pic, wijk, keuze FROM visit WHERE wijk = ?", Array As String(main.aron))
For i = 0 To intCount -1
cur.Position = i
mapc(i) = cur.GetString("MapNaam")
main.regelonder = cur.GetString("Regelonder")
favot(i) = cur.GetString("keuze")
wijk = cur.GetString("wijk")
main.pic = cur.GetString("pic")
Bitmap1.Initialize(File.DirAssets, main.pic)
ListView1.AddTwoLinesAndBitmap(mapc(i), main.regelonder, Bitmap1)
Next
:signOops:
In my db I use districts
I wants to show a Listview with only the select districts
But also need other variable off this row
There are 270 districts in the dB, but I will have about 30 left over at the end, after filtering.
I know that favot(32), mapc(32 is not enough in my case.
This is my code and I can not find where the error is.
Dim favot(32) As String
Dim mapc(32) As String
main.aron = "Reuilly"
Dim cur As Cursor
Dim intCount As Int
SQL.Initialize(File.DirRootExternal, "VisitParijs/visit.db", False)
intCount = SQL.ExecQuerySingleResult("SELECT count(*) FROM visit")
cur = SQL.ExecQuery2("SELECT MapNaam, Regelonder, pic, wijk, keuze FROM visit WHERE wijk = ?", Array As String(main.aron))
For i = 0 To intCount -1
cur.Position = i
mapc(i) = cur.GetString("MapNaam")
main.regelonder = cur.GetString("Regelonder")
favot(i) = cur.GetString("keuze")
wijk = cur.GetString("wijk")
main.pic = cur.GetString("pic")
Bitmap1.Initialize(File.DirAssets, main.pic)
ListView1.AddTwoLinesAndBitmap(mapc(i), main.regelonder, Bitmap1)
Next
:signOops: