Hello again people,
I have a bit of a logical problem. the solution seems so incredibly simple, but I don't seem to be able to come up with anything.
there are days:
day1_1, day2_1, day3_1 ...
day1_2, day2_2, day3_2 ...
day1_3, day2_3, day3_3 ...
... ... ...
every day is a textbox with a possible value.
I filtered the textboxes for only those that have a value.
next I want to see which textboxes already had a value to begin with and which were first blank before they gotten a number.
so I check to see if a certain day already had a value before by checking it with a table that keeps track of all textboxes with a value.
my very simple problem is the following. lets say that day2_4 had a value before, so this would give
day2_4 = day2_1 (false)
day2_4 = day2_2 (false)
day2_4 = day2_3 (false)
day2_4 = day2_4 (True) ! -> so day2_4 did had a value
day2_4 = day2_5 (false)
Now comes the problem. some days didn't had a value before and just got one entered in them. so I need to upload them. however, even the days that did had a value, like day2_4 return a couple of falses before eventually returning one true. so I am looking for a way that if a day is true, it cannot return a false.
or something like that
my current solution is kinda horrible.
when a day returns True, I save it in a table. then I compare that table with all days that have a value, and those days that aren't in the table are new, but there must be a better way
I have a bit of a logical problem. the solution seems so incredibly simple, but I don't seem to be able to come up with anything.
there are days:
day1_1, day2_1, day3_1 ...
day1_2, day2_2, day3_2 ...
day1_3, day2_3, day3_3 ...
... ... ...
every day is a textbox with a possible value.
I filtered the textboxes for only those that have a value.
next I want to see which textboxes already had a value to begin with and which were first blank before they gotten a number.
so I check to see if a certain day already had a value before by checking it with a table that keeps track of all textboxes with a value.
Code:
for i = 0 to #days
if new_days = old_days then
'the new day had a value before
else
'the new day didn't had a value before and needs to be saved into the 'database
day2_4 = day2_1 (false)
day2_4 = day2_2 (false)
day2_4 = day2_3 (false)
day2_4 = day2_4 (True) ! -> so day2_4 did had a value
day2_4 = day2_5 (false)
Now comes the problem. some days didn't had a value before and just got one entered in them. so I need to upload them. however, even the days that did had a value, like day2_4 return a couple of falses before eventually returning one true. so I am looking for a way that if a day is true, it cannot return a false.
or something like that
my current solution is kinda horrible.
when a day returns True, I save it in a table. then I compare that table with all days that have a value, and those days that aren't in the table are new, but there must be a better way