Hours after eating / sleeping (and very early at night), I awoke.
I wrote a brand new project with
Two TextFields (for Start-End Dates),
Two PushButtons (for Clear Listbox, Go),
One Listbox (for reporting).
I populated it with a brand new writed code (below) with few error checkings, save it and run it.
Code OK / Works fine at first run.
Now, I will (later) compare the two codes (one in the original project and this one), then copy / paste this code in the other project where I need it. As aften, I was right to stop wasting time (walking in circles to nowhere) and both ask for help / rewrote the code.
[code] Dim Date_Start As New Date
Dim Date_End As New Date
Dim Date_Now As New Date
Dim Loop_Idx As Integer
Dim Loc_Row As Integer
// Fill the Dates Class
Date_Start.SQLDate = TF_Date_Start.Text
Date_End.SQLDate = TF_Date_End.Text
Date_Now.SQLDate = TF_Date_Start.Text
Do Until Date_Now > Date_End
// Add a Sunday Report
LB.AddRow Format(Loop_Idx, “00”)
Loc_Row = LB.LastIndex
LB.Cell(Loc_Row, 1) = Date_Now.LongDate
// Next Sunday, please
Date_Now.Day = Date_Now.Day + 7
// Inc the loop indice
Loop_Idx = Loop_Idx + 1
// To avoid an infinite loop
If UserCancelled Then Exit
Loop[/code]
Only addition is the Loop_Idx variable, but I could have reported the day of year or week of year
Internet is on and the Xojo cache folder was not cleared prior to that
Thanks all for the help.