format incorrect params



format incorrect params
Smart pascal source code
var s: String; var o: TObject; var i: IInterface; var a: array of Variant; try WriteLn(Format('%d', [s])); except on E: Exception do WriteLn(E.Message); end; try WriteLn(Format('%d', [o])); except on E: Exception do WriteLn(E.Message); end; try WriteLn(Format('%d', [i])); except on E: Exception do WriteLn(E.Message); end; try WriteLn(Format('%d', [a])); except on E: Exception do WriteLn(E.Message); end; {<<< RESULT - CONSOLE LOG >>> ----------------------------- Format '%d' invalid or incompatible with argument [line: 7, column: 12] Format '%d' invalid or incompatible with argument [line: 14, column: 12] Format '%d' invalid or incompatible with argument [line: 21, column: 12] Format '%d' invalid or incompatible with argument [line: 28, column: 12] ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}