Expected (%1), but these arguments are (%2)

From Xojo Documentation

Error message

You passed parameters of an incorrect data type to a method.

Sample Code

The RGB function expects integer values, so this incorrect code does not compile:

Dim c As Color
c = Color.RGB("red", "green", "blue")

You get this error: Expected (Integer, Integer, Integer), but these arguments are (TextLiteral, TextLiteral, TextLiteral)