I don't quite know how to explain this - Perhaps if I just show results and you can help.
If I run this code as shown I get the log showing:-
DateFromShow.Text = 06.11.2023
DateToShow.Text.. = 12.11.2023
SelectFrom = 6112023
SelectTo = 12112023
If I switch the comment to the first Cursor and use second Cursor selection I get:-
DateFromShow.Text = 06.11.2023
DateToShow.Text.. = 12.11.2023
SelectFrom = 6112023
SelectTo = 1.2112023E7
You will notice that the SelectTo is different - Includes '.' and 'E7'
No other changes made to code only the switching of the comment line
I am sure I have done something crazy but cant see it. I am hoping that you good people could assist.
B4X:
'---- * Setup Select
Dim SelectFrom As Int
Dim SelectTo As Int
Log("DateFromShow.Text = "&DateFromShow.Text)
Log("DateToShow.Text = "&DateToShow.Text)
SelectFrom = DateFromShow.Text.Replace(".","")
SelectTo = DateToShow.Text.Replace(".","")
Log("SelectFrom = "&SelectFrom)
Log("SelectTo = "&SelectTo)
'----*
Cursor = DB.ExecQuery("Select * from LogRecord WHERE LogWeekNo='"&WeekNo&"' ORDER BY LogDate ASC")
' Cursor = DB.ExecQuery("Select * from LogRecord WHERE LogDate=>'"&SelectFrom&"' and LogDate=<'"&SelectTo&"' ORDER BY LogDate ASC")
If I run this code as shown I get the log showing:-
DateFromShow.Text = 06.11.2023
DateToShow.Text.. = 12.11.2023
SelectFrom = 6112023
SelectTo = 12112023
If I switch the comment to the first Cursor and use second Cursor selection I get:-
DateFromShow.Text = 06.11.2023
DateToShow.Text.. = 12.11.2023
SelectFrom = 6112023
SelectTo = 1.2112023E7
You will notice that the SelectTo is different - Includes '.' and 'E7'
No other changes made to code only the switching of the comment line
I am sure I have done something crazy but cant see it. I am hoping that you good people could assist.