Hi , need help with this Please
I am try to get open time I have two field
what I am try to do is if mobile time is before open and after close
then I write in the listview CLOSE
open ,, when the place is open in the morning
close ,, when the place is close in the night
I am try to get open time I have two field
what I am try to do is if mobile time is before open and after close
then I write in the listview CLOSE
open ,, when the place is open in the morning
close ,, when the place is close in the night
B4X:
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