Re: Strange problem in my Report..
Posted in 1996
Since you don't pass cc into the report as an argument, you never assign any values to the parts of cc, and you add them up, you get undefined behaviour. If you did pass them into the report, you need to look at the report driving code where you call OUTPUT TO REPORT xx. You almost never write a report with zero parameters. I've never had a reason to do so, at any rate, and you would have a lot of convincing to do to persuade me that you need one. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h> }From: hfiabema@osf1.gmu.edu (Hannah Sobie Fiabema) }Date: 13 Nov 1996 21:14:30 GMT }X-Informix-List-Id: <news.30419> } }Gurus, } I can't seem to solve this problem, so I am turning it over }to YOU the INFORMIX community. It's pretty simple actually. This is }what I am trying to do: } } my report looks like this: (the source compiles w/o error ) } } report xx() } } define cc record } BankNo char, } col1 money(12,2), } . } col10 money(12,2) } end record } } . } } ON EVERY ROW } LET totalVar = col1+...+col10 } } THIS IS THE PROBLEM, TOTALVAR IS NULL!!!!!!! } }Thanks in advance for all assistance.