Apr 15, 2002 #1 zircom IS-IT--Management Mar 12, 2001 31 GB I have a string field hh:mm which I want to calculate total time taken (total hours spent travelling during workind day)for each member of a workforce
I have a string field hh:mm which I want to calculate total time taken (total hours spent travelling during workind day)for each member of a workforce
Apr 15, 2002 #2 Ngolem Programmer Aug 23, 2001 2,724 CA I would convert the each string value into minutes then subtract to get the result; @calcMinutes WhilePrintingRecords; numberVar totalMinutes; totalMinutes := tonumber(left({table.timevalue},2) * 60 + tonumber(right({table.timevalue},2) totalMinutes; Jim JimBroadbent@Hotmail.com Upvote 0 Downvote
I would convert the each string value into minutes then subtract to get the result; @calcMinutes WhilePrintingRecords; numberVar totalMinutes; totalMinutes := tonumber(left({table.timevalue},2) * 60 + tonumber(right({table.timevalue},2) totalMinutes; Jim JimBroadbent@Hotmail.com