[fpc-pascal] Format and Cardinal

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Feb 10 13:11:04 CET 2016


Hello,

Why does this trigger an range check exception:

var
  lNum: Cardinal;
  lStr: string;
begin
  lNum := High(Cardinal);
  lStr := Format('Num=%u', [lNum]);

Format doesn't support integer numbers above High(Integer) ?

I really need to use IntToStr?

thanks,
-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list