OK folks,
I have from database data-(time) which are type(int)...
like 95959(9:59:59)...so in CR v8.5 I convert this INT to
the time:
whileprintingrecords;
numbervar THours ;
numbervar TMins ;
numbervar TSecs ;
numbervar Temp := {Definity_History.secDur};
THours := truncate(Temp/10000,0);
TMins := truncate((Remainder ({Definity_History.secDur}, 10000))/100);
TSecs := Remainder({Definity_History.secDur},100);
//If {Proba.sec} >= 60 then
///TMins := TMins +1;
totext(THours,"00" + ":" + totext(TMins,"00" + ":" + totext(TSecs,"00" ;
then I convert this field to seconds(at the end I need SUM),
like...:
local numbervar hours;
local numbervar minutes;
local numbervar seconds;
//convert the hours to seconds by multiplying by 3600
hours := hour(ctime({@to_time})) * 3600;
//convert the minutes to seconds by multiplying by 60
minutes := minute(ctime({@to_time})) * 60;
seconds := second(ctime({@to_time}));
//add up all the seconds
hours + minutes + seconds;
and then when I try to make SUM,or even RUNNING TOTAL doesnt
work...something like "The summary/running total field could not be created"
I will appreciative for any idea,help
I have from database data-(time) which are type(int)...
like 95959(9:59:59)...so in CR v8.5 I convert this INT to
the time:
whileprintingrecords;
numbervar THours ;
numbervar TMins ;
numbervar TSecs ;
numbervar Temp := {Definity_History.secDur};
THours := truncate(Temp/10000,0);
TMins := truncate((Remainder ({Definity_History.secDur}, 10000))/100);
TSecs := Remainder({Definity_History.secDur},100);
//If {Proba.sec} >= 60 then
///TMins := TMins +1;
totext(THours,"00" + ":" + totext(TMins,"00" + ":" + totext(TSecs,"00" ;
then I convert this field to seconds(at the end I need SUM),
like...:
local numbervar hours;
local numbervar minutes;
local numbervar seconds;
//convert the hours to seconds by multiplying by 3600
hours := hour(ctime({@to_time})) * 3600;
//convert the minutes to seconds by multiplying by 60
minutes := minute(ctime({@to_time})) * 60;
seconds := second(ctime({@to_time}));
//add up all the seconds
hours + minutes + seconds;
and then when I try to make SUM,or even RUNNING TOTAL doesnt
work...something like "The summary/running total field could not be created"
I will appreciative for any idea,help