Hello:
With assistance from other programmers on this board I am trying to get a running total field to work on my report. Based on advice I have been given I am trying to convert a string to a interger and then back to the same format so I can do some calculations. On both formulas and when I try to run the Crystal report, I get the same error over and over: "THE ( IS MISSING". Why is this happening, what is wrong with the formulas I am using.
First one: in details section to convert format:
(tonumber(left({ado.correctedduration},2)*60)*60+
tonumber(mid({ado.correctedduration}4,2))*60+
tonumber(mid({ado.correctedduration}7,2))
Second one: in group footer to return format:
whileprintingrecords;
numberVar dur:={#RTotal1};
numberVar hrs;
numberVar min;
numberVar sec;
stringVar hhmmss;
hrs:=Truncate(Truncate(dur/60)/60);
min:=Remainder(Truncate(dur/60),60);
sec:=Remainder(dur,60);
hhmmss:=totext(hr,"0" + ":" + totext(min, "00" + ":" + totext(sec, "00"
hhmmss
Both formulas return the same error, what is wrong with my syntax?
With assistance from other programmers on this board I am trying to get a running total field to work on my report. Based on advice I have been given I am trying to convert a string to a interger and then back to the same format so I can do some calculations. On both formulas and when I try to run the Crystal report, I get the same error over and over: "THE ( IS MISSING". Why is this happening, what is wrong with the formulas I am using.
First one: in details section to convert format:
(tonumber(left({ado.correctedduration},2)*60)*60+
tonumber(mid({ado.correctedduration}4,2))*60+
tonumber(mid({ado.correctedduration}7,2))
Second one: in group footer to return format:
whileprintingrecords;
numberVar dur:={#RTotal1};
numberVar hrs;
numberVar min;
numberVar sec;
stringVar hhmmss;
hrs:=Truncate(Truncate(dur/60)/60);
min:=Remainder(Truncate(dur/60),60);
sec:=Remainder(dur,60);
hhmmss:=totext(hr,"0" + ":" + totext(min, "00" + ":" + totext(sec, "00"
hhmmss
Both formulas return the same error, what is wrong with my syntax?