Hi everyone!!!
I'm loading data from a database and I don't know how to show a progressbar during the process. Just want to show a progress circle to show users that data is loading...
this is teh code:
'********************************************
'********************************************
Any idea???
Thanks. ;-)
I'm loading data from a database and I don't know how to show a progressbar during the process. Just want to show a progress circle to show users that data is loading...
this is teh code:
'********************************************
B4X:
Sub CargarDatosJ
Try
pgbBarra.Visible=True
Starter.Connect
Dim cur As JdbcResultSet= Starter.mysql.ExecQuery("select concat(idcategoria,' - ',nombre) categoria from categorias1 where activa=1 order by nombre")
Do While cur.NextRow
spnCategorias.add(cur.GetString("categoria"))
Loop
spnCategorias.SelectedIndex=6
cur.Close
Dim niv As JdbcResultSet = Starter.mysql.ExecQuery("select concat(idnivel,' - ',descripcion) nivel from niveles")
Do While niv.NextRow
spnNiveles.add(niv.GetString("nivel"))
Loop
spnNiveles.SelectedIndex=1
niv.Close
Catch
Log(LastException)
End Try
Starter.CloseConnection
pgbBarra.Visible=False
End Sub
Any idea???
Thanks. ;-)