Sep 13, 2002 #1 kovas Technical User Aug 6, 2002 88 US How can I convert 17.5 hours to 17:30:00 (hh:mm:ss) ?
Sep 13, 2002 #2 synapsevampire Programmer Mar 23, 2002 20,180 US Try: whileprintingrecords; numberVar dur := ({MyTable.MyHours}*60)*60 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 -k http://www.informeddatadecisions.comkai@informeddatadecisions.com Upvote 0 Downvote
Try: whileprintingrecords; numberVar dur := ({MyTable.MyHours}*60)*60 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 -k http://www.informeddatadecisions.comkai@informeddatadecisions.com