TrentSteel
MIS
All
I know that one of the FAQ's does have a formula like this:
whileprintingrecords;
numberVar dur:={TIME_TO_FINISH}(this is where error occurs)
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(hrs, "0") + ":" + totext(min, "00") + ":" + totext(sec, "00");
hhmmss
but it is not working for me. I get error that from the point indicated in the above code, it gives me "the remaining text is not part of the formula.
Also, I tried getting it to display dd:mm:hh:ss, but I just can't get it to work. Has someone else got this? TIA
Trent - using Crystal 8.5
I know that one of the FAQ's does have a formula like this:
whileprintingrecords;
numberVar dur:={TIME_TO_FINISH}(this is where error occurs)
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(hrs, "0") + ":" + totext(min, "00") + ":" + totext(sec, "00");
hhmmss
but it is not working for me. I get error that from the point indicated in the above code, it gives me "the remaining text is not part of the formula.
Also, I tried getting it to display dd:mm:hh:ss, but I just can't get it to work. Has someone else got this? TIA
Trent - using Crystal 8.5