I'm trying to populate some new fields in a table with processing only report. One of the fields was set up as DateFormula type. When I try to compile my report with a line such as
Customer."InState Ship Lead" := -5D ;
I get an error message that there is something wrong with my constant. I can manual enter -5D into the table without a problem. Any suggestions?
0
Comments
John
Instate := -5D ; (where Instate is a global variable
of the dateformula type
I get an error stating there is something wrong with my constant.
If I enclose the -5D in single quotes, I get an error referencing type conversion.
The best way to set the value of a dateformular is with the Evaluate function.
i.e.
EVALUATE(da,'-5d');
Paul Baxter
Bill