procedure TForm1.Button1Click(Sender: TObject);
var
arrSize: array[ 0..255 ] of Char;
begin
{same formating like in statusbar of Explorer}
StrFormatByteSize(70846, arrSize, Length(arrSize) * Sizeof(arrSize));
Label1.Caption := 'Result: ' + arrSize;
end;
StrFormatByteSize requiert que arrsize soit un PWideChar.Chaîne de sortie incorrecte
Comment afficher le résultat correctement dans Delphi 2009?
vous devez utiliser CodeSample pour formater votre code correctement – dummzeuch