* Assuming up to 99:59:59 ? padl(int(nRuntime/3600),2,"0")+":"+; padl(int(nRuntime%3600/60),2,"0")+":"+; padl(nRuntime%60,6,"0") * Or no milliseconds is needed ? padl(int(nRuntime/3600),2,"0")+":"+; padl(int(nRuntime%3600/60),2,"0")+":"+; padl(int(nRuntime%60),2,"0")OTOH, your TTOC(,2) is a nice way to get time input from user :) Actually I use it combined with a time entry textbox + datetimepicker ActiveX. At textbox gotfocus, textbox sets itself to visible=.f. and sets focus to ActiveX (visible=.t.). That in turn sets textbox value to ttoc(,2) and visible=.t. at lostfocus (activex.visible=.f.). As if it were a Sparse=.t. control in a grid.