"Declaration Expected"Posted by Jeff Duff on September 04, 2003 at 16:25:29: I'm totally lost on these error messages. I have this function, that takes an amount of Seconds, and convertes it to how many weeks, days, hours, minutes and seconds it is. function Duration(Secs : Extended) : string; if Secs >= 604800 then //Seconds in a month if Secs >= 86400 then //Seconds in a day if Secs >= 3600 then //Seconds in a hour if Secs >= 60 then //Seconds in a minute intSeconds := Truc(Secs); //The Rest should be seconds Result := IntToStr(intWeeks) + ' Weeks ' + IntToStr(intDays) + ' Days ' + IntToStr(intHours) + ' Hours ' + IntToStr(intMinutes) + ' Minutes ' + IntToStr(intSeconds) + ' Seconds';
[ DelphiLand: free Delphi source code, tips, tutorials ] |
|