In The first activity,I have success for map data as code belows
Dim ListOfMaps As List
ListOfMaps.Initialize
For i = 1 To 40
Dim m As Map
m.Initialize
m.Put("Id", Id)
m.Put("First Name", "John")
m.Put("Last Name", "Smith" & i)
ListOfMaps.Add(m)
Next
DBUtils.InsertMaps(Starter.SQL1, "Students", ListOfMaps)
It 's correct only the first time's deletion ,and then I need to delete the record again ,the row is not equal to ID. How do I get ID from the row which is selected?
Ok My problrem is solved myself. Thank you for kind of you,LucaMs
row= values(1)
'Delete Record which is selected
ToastMessageShow(row,False)
Dim Csr As Cursor
Csr = SQL1.ExecQuery("SELECT ID FROM Students")
Csr.Position = row
ToastMessageShow("Cursor=" &Csr.GetInt("ID") ,False)
DBUtils.DeleteRecord(SQL1,"Students", CreateMap("ID":Csr.GetInt("ID") ))