Why is this an issue?

Passing arguments of the wrong type to a call to System.SysUtils.Format raises a runtime exception. In particular:

How to fix it

Ensure that the arguments to the Format call match the specifiers in the format string:

Format('%d got %.2f percent on the test.', ['Bob', 74.599]);
Format('%s got %.2f percent on the test.', ['Bob', 74.599]);

Resources