It looks like you're new here. Sign in or register to get started.
if (format(VarDateFormula)) = '') then VarDateFormula := 30D;
IF (FORMAT(dummyduedate) = '') then EVALUATE(dummyduedate,'30D');
Duedaydate:= CALCDATE(dummyduedate,GateEntryDate);
NewDate := calcdate('<EXPRESION>',DATE);
Comments
REgards
error is :=There is an error in a constant.
Date variable = Duedaydate
Date variable=GateEntryDate
DateFormula=dummyduedate
Duedaydate:= CALCDATE(dummyduedate,GateEntryDate);
Doesn't work the above? What is your question?
Here is an example of the date being blank and setting it to 30 Days from Computer date using TODAY. Hope this helps.
IF (dummyduedate = 0D) then //IF date is zero then
dummyduedate := CALCDATE('+30D',TODAY); //Add 30 Days to Today
so use the function