local numbervar tme := {table.field};
local numbervar hr := 0;
local numbervar mn:=0;
local stringvar s;
local stringvar m;
hr := cint(tme/3600);
tme := tme - hr*3600;
mn := cint(tme/60);
tme:=tme - mn*60;
s:=totext(tme,0,"");
m:=totext(mn,0,"");
if tme<10 then s:="0"+s;
if mn<10 then m:="0" +m;
totext(hr,0,"")+":"+m+":"+s
HTH