+4
Fixed

[W513] False positive when using index specifier

Uwe Schuster 9 years ago updated by Roman 9 years ago 3
Using an index specifier in format statements creates false positive W513 warnings.

ShowMessage(Format('%d %0:d', [1]));//OKAY - output "1 1"
ShowMessage(Format('%0:d %0:d', [1]));//OKAY - output "1 1"
ShowMessage(Format('%0:d %0:d %1:d', [1, 2]));//OKAY - output "1 1 2"
ShowMessage(Format('%0:d %0:d %1:d %d', [1, 2]));//ACTUALLY AN ERROR, because last %d requires a third arguments array item