Re: [fpc-pascal] Format and Cardinal

2016-02-10 Thread Jonas Maebe
Felipe Monteiro de Carvalho wrote on Wed, 10 Feb 2016: lol, thanks for the comprehensive reply, if no one objects I will add a note about this in http://www.freepascal.org/docs-html/rtl/sysutils/format.html That is the wrong place. It has nothing to do with format, it's about the "array of

Re: [fpc-pascal] Format and Cardinal

2016-02-10 Thread Felipe Monteiro de Carvalho
Hello, lol, thanks for the comprehensive reply, if no one objects I will add a note about this in http://www.freepascal.org/docs-html/rtl/sysutils/format.html -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org ht

Re: [fpc-pascal] Format and Cardinal

2016-02-10 Thread Jonas Maebe
Felipe Monteiro de Carvalho wrote on Wed, 10 Feb 2016: 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) ? Array of const suppor

[fpc-pascal] Format and Cardinal

2016-02-10 Thread Felipe Monteiro de Carvalho
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 _