txgeekgirl1
Programmer
I have the NewDuratn rounding and calculating correctly. Here is the issue. My first 2 values are 1.00 and 2.00 - I need to further that and calculate minutes back into minutes.... example - I have a 1.94 which is like 110 min. I have to divide .94/60 and add it back on. In VFP 6 I don't have a lot of the newer options. I have tried string conversion then manipulating but with my first two values it's rounding something awful.
This calculation is the middle piece I need. for the last piece below.
Code:
SELECT CONNECTOR, ;
CliID, ;
Duratn, ;
ROUND(Duratn/60,2) AS NewDuratn ;
FROM MyTimes_ ;
ORDER BY Connector ;
INTO CURSOR Dura2_
This calculation is the middle piece I need. for the last piece below.
Code:
IIF(sv.SvcCode = "3104",VAL(RIGHT(Duratn,2)),IIF(VAL(RIGHT(Duratn, 2)) < 8.00, 0.00, IIF(VAL(RIGHT(Duratn, 2)) < 23.00, 0.25, ;
IIF(VAL(RIGHT(Duratn, 2)) < 38.00, 0.50, IIF(VAL(RIGHT(Duratn, 2)) < 53.00, 0.75, 1.00))))) as dMin, ;