Me funciona pero no como realmente creo(?) que debe funcionar...
en este caso, el cursor toma 77 mil registros, al iniciar la barra se va a 1 (inicio) pero se queda pegada ahi, hasta que termina, nunca se actualiza y solo desaparece cuando termina... en simple, no hay una muestra del progreso para el usuario, entonces, que me falta para que muestre el progreso como debe?
de antemano, muchas gracias.
B4X:
For i = 0 To data.Size - 1
cur = data.Get(i)
AuxCodigo = cur.Get("codigo")
AuxLote = cur.Get("lote")
AuxUMB = cur.Get("umb")
AuxVenc = cur.Get("vencimiento")
Main.DBLocalWMS.ExecNonQuery2("Insert into Lote values(?,?,?,?)",Array As Object(AuxCodigo,AuxLote,AuxUMB,AuxVenc))
Label1.Text = i & " / " & (data.Size - 1)
ProgressBar1.Value = Round(i / 1000)
Next
ProgressBar1.Value = 100
Gracias, lo voy a probar. Aunque mi duda más que nada va por el lado que no se mueve la barra, más que el porcentaje de avance. Lo pruebo y les comento.
The new resumable subs feature, introduced in B4J v5.50, B4i v4.00 and B4A v7.00 (to be soon released), makes it simpler to work with large data sets with minimum effect on the program responsiveness. The new standard way to insert data is: For i = 1 To 1000 sql.AddNonQueryToBatch("INSERT...
The new resumable subs feature, introduced in B4J v5.50, B4i v4.00 and B4A v7.00 (to be soon released), makes it simpler to work with large data sets with minimum effect on the program responsiveness. The new standard way to insert data is: For i = 1 To 1000 sql.AddNonQueryToBatch("INSERT...