I have a number of records stored in spinner view but after selecting on record i delete the first record and then remain with the rest but the spinner keeps the old record please help
B4X:
cursor1 =Starter.SQL1.ExecQuery2("DELETE FROM SMSlist where Atk = ?", Array As String(Rsms4.Text))
B4X:
Sub spnFirstName_ItemClick (Position As Int, Value As Object)
cursor1 =Starter.SQL1.ExecQuery2("SELECT Account,Phone,Sex,sms,Datesent,Atk FROM SMSlist where Names = ?", Array As String(spnFirstName.SelectedItem))
If cursor1.RowCount<>0 Then
'user registered
For i = 0 To cursor1.RowCount - 1
cursor1.Position = 0
Rsms.Text=cursor1.GetString("sms")
Log(Rsms.Text)
Rsms2.Text=cursor1.GetString("Datesent")
Log(Rsms2.Text)
Rsms4.Text=cursor1.GetString("Atk")
Next
End If
End sub