Hi I've the following code.....
If i don't put the msgbox to show the value, the do while will take only the first record! why?
B4X:
Conn1.BeginTransaction
Command1.CommandText = "SELECT * FROM t_rilevazioni order by Id"
Reader1.New1
Command1.ExecuteNonQuery
Reader1.Value = Command1.ExecuteReader
Do While Reader1.ReadNextRow = True
rigafile=Reader1.GetValue(1)
rigafile=StrRemove(rigafile,0,1)
Msgbox(rigafile)
.......
'insert in remote sql table
.......
Loop
If i don't put the msgbox to show the value, the do while will take only the first record! why?