本文整理自网络,侵删。
function BytesToStr(iBytes: Integer): String;variKb: Integer;beginiKb := Round(iBytes / 1024);if iKb > 1000 thenResult := Format(‘%.2f MB‘, [iKb / 1024])elseResult := Format(‘%d KB‘, [iKb]);end;
相关阅读 >>
Delphi andorid应用程序检查wifi有效还是无效
更多相关阅读请进入《Delphi》频道 >>