function TMainForm.RoundFileSize(Size: Real): String;
begin
Result := FloatToStr(Size) + ' б';
Size := Size / 1024;
if Size >= 1 then Result := FloatToStr(Size) + ' кб' else Exit;
Size := Size / 1024;
if Size >= 1 then Result := FloatToStr(Size) + ' мб';
end;Форум Invision Power Board (http://nulled.ws)
© Invision Power Services (http://nulled.ws)