Error when use a declaired variable.
Hi
I get the following error message: Field not fount: Tempdateat line 15, column 23. it is the line:
"if EndDate >= TempDate then"
in the code below. I have declared the variable with the let statement but I get the error in the if statment. What is the problem ?
if text(Repeating) = "Yes" and text(Done) = "Yes" then
if text(RepeatType) = "Daily" then
let TempDate := Date + number(RepeatFrequencyDay);
void
end;
if text(RepeatType) = "Weekly" then
if text(RepeatFrequencyWeek) = "Every week" then
let TempDate := Date + number(RepeatFrequencyWeek) + 7;
void
else
let TempDate := Date + number(RepeatFrequencyWeek) * 7;
void
end
end;
if EndDate >= TempDate then
Done := "";
Date := TempDate
end;
closeRecord()
end
1 reply
-
I would declare TempDate before the first if-statement and set it's value to a default date value.
Content aside
- 5 yrs agoLast active
- 1Replies
- 926Views