This code cause that problem (Cursor windows allocation...)
Can anyone help me, please?
The table PrediccionServios has about 1000 records.
Best regards
Espinosa
B4X:
Sub ActualizarTJornada
Dim SO,SR,SP As SQL
Dim CO,CR,CP As Cursor
If SO.IsInitialized = False Then
SO.Initialize(File.DirDefaultExternal, "l4pro.sql", False)
End If
If SR.IsInitialized = False Then
SR.Initialize(File.DirDefaultExternal, "l4pro.sql", False)
End If
If SP.IsInitialized = False Then
SP.Initialize(File.DirDefaultExternal, "l4pro.sql", False)
End If
CP = SP.ExecQuery("SELECT * FROM PrediccionServicios")
If CP.RowCount > 0 Then
For i = 0 To CP.RowCount-1
CP.Position = i
CO = SO.ExecQuery("SELECT * FROM ServOrdinarios WHERE NumServicio = '"&CP.GetString("Servicio")&"'")
If CO.RowCount > 0 Then
'/////////////////
Else
CR = SR.ExecQuery("SELECT * FROM ServReducidos WHERE NumServicio = '"&CP.GetString("Servicio")&"'")
If CR.RowCount > 0 Then
'//////
End If
End If
Next
End If
CO.Close
CR.Close
CP.Close
End Sub
Can anyone help me, please?
The table PrediccionServios has about 1000 records.
Best regards
Espinosa