Cursor = SQL.ExecQuery("select * from plases where nafn like '" & tt.nafn & "%' order by nafn;")
' Listview
For i = 0 To Cursor.RowCount - 1
Dim tt As personangsmnn
Cursor.Position = i
tt.nafn=Cursor.GetString("weekday")
tt.opidfra=Cursor.GetString("open")
tt.opidtil=Cursor.GetString("close")
DateTime.TimeFormat="HH:mm"
If DateTime.TimeParse(DateTime.Time(DateTime.Now)) < DateTime.TimeParse(tt.opidfra) AND DateTime.TimeParse(DateTime.Time(DateTime.Now)) > DateTime.TimeParse(tt.opidtil) Then
Listview_info.AddTwoLines2 (tt.nafn & " CLOSE ",tt.opidfra & " = " & tt.opidtil,tt)
Else
Listview_info.AddTwoLines2 (tt.nafn,tt.opidfra & " = " & tt.opidtil,tt)
End If
Next
Cursor.Close