Sub Carga_Rutas_en_ListView
ListView1.Clear
registro=sql1.ExecQuery("SELECT * FROM trutas order by fecha,ruta")
If registro.RowCount>0 Then
For ni=0 To registro.Rowcount - 1
registro.Position=ni
fecha= registro.GetString("fecha")
ruta= registro.GetString("ruta")
ffecha=" " & fecha.SubString2(0,2) & "/" & fecha.SubString2(2,4) & "/" & fecha.SubString2(4,6)
ListView1.AddSingleLine2(ffecha & " " & registro.GetString("descripcion"),fecha & ";" & ruta)
ListView1.SingleLineLayout.ItemHeight=100
ListView1.SingleLineLayout.Label.TextSize=20
ListView1.SingleLineLayout.Label.Textcolor=Colors.White
ListView1.SingleLineLayout.Label.Color=Colors.RGB(55,55,55)
Next
End If
registro.Close
ListView1.RequestFocus
End Sub