Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert numeric value of total time to time 1

Status
Not open for further replies.

bspalmer

MIS
Jan 16, 2003
14
US
How would I convert the numeric value of total time to a time value. Example: I have a total time value of 1.69, how do I convert that to show 1hr 41min.
 
Try:

whileprintingrecords;
stringvar TimeVal := //totext({table.field},2,"");
left(TimeVal,instr(TimeVal,".")-1)
+
"."
+
totext((val(mid(TimeVal,instr(TimeVal,".")+1))*.6),0,"")

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top