Compare periods of time.
I have a table of periods
(fields "von" - "bis" in german means "from ... to")
The table is sorted by the beginning of a period.
see photo.
Structure:
this is the file:
As you can see, some dates (not all) collide - or they overlap with others in the table.
The file contains the memo field "note" for this purpose.
Now I would like to have a program that writes into the memo field "note" whether ... and if so ... the respective date overlaps with other (which?) Periods in the table.
I think that you can do this with the BETWEEN function - and have also tried Scan..Endscan, but the data pointer
is immediately at the end of the file when I use Scan..endscan.
Does anyone have any idea what the loop or a code should look like?
Thank you in advance.
Klaus
Peace worldwide - it starts here...
I have a table of periods
(fields "von" - "bis" in german means "from ... to")
The table is sorted by the beginning of a period.
see photo.
Structure:
this is the file:
As you can see, some dates (not all) collide - or they overlap with others in the table.
The file contains the memo field "note" for this purpose.
Now I would like to have a program that writes into the memo field "note" whether ... and if so ... the respective date overlaps with other (which?) Periods in the table.
I think that you can do this with the BETWEEN function - and have also tried Scan..Endscan, but the data pointer
is immediately at the end of the file when I use Scan..endscan.
Does anyone have any idea what the loop or a code should look like?
Thank you in advance.
Klaus
Peace worldwide - it starts here...