We are excited to announce that the ASP.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

# Formula value never print[Answered] RSS

## 1 reply

Last post Nov 05, 2012 02:25 AM by Ajay2707

• subhankarpan...

Member

6 Points

49 Posts

### Formula value never print

Nov 03, 2012 07:56 AM|subhankarpandey|LINK

I'm having following formula, but never print lcHrsMin(it is appear as blank) while preview the report, will

you please advice how to rectify this:-

local numbervar lnHrs:=0;
local numbervar lnMin:=0;
local stringvar lcHrsMin:="";

lnHrs = INT(ABS({RptTable.Hrs_Late}));
lnMin = ROUND((ABS({RptTable.Hrs_Late}) % 1) * 60, 0);
IF lnMin = 60 then
(
lcHrsMin="if mnt is sixty";
lnMin = 0;
lnHrs = lnHrs + 1;
);
lcHrsMin="Perform Calc";
lcHrsMin = trim(toText(lnHrs)) + ":" + left(Trim(toText(lnMin)), 2);
IF {RptTable.Hrs_Late}< 0 then
(
lcHrsMin="Performed done";
lcHrsMin = "-" + lcHrsMin;
);

toText(lcHrsMin);

Thanks
Subhankar
• Ajay2707

Contributor

6622 Points

1743 Posts

### Re: Formula value never print

Nov 05, 2012 02:25 AM|Ajay2707|LINK

Hi Subhankar,

I don't have report tool, that's why I am not able check.

But you try as :  First you check is there any error(It may be have any conversion error also)?(to check error: while you save, it gives error or there is sysntax error check option).

If no, then break this statement into 2 or 3 part and check the output and your logic is same. So now you will rectify your self.

Please, Mark as Answer if this reply helped you.