This Method Requires Fewer Parameters than were Passed

From Xojo Documentation

Error message

You passed too many parameters to a method. Another possibility is that you passed the required number of parameters but did not separate them with commas.


Examples

Passing the required number of parameters but omitting a comma

ListBox1.AddRow 2 "Chicago"


Passing too many parameters:

listBox1.insertRow 2,"Charlie","Dallas"


The user-written function, myFunction, takes two parameters:

Dim d as Double
d=myFunction(5,6,8)