locked
Formula value never print RRS feed

  • Question

  • User-1424866748 posted

    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);

    Saturday, November 3, 2012 7:56 AM

Answers

  • User-578610739 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 5, 2012 2:25 AM