This Method Requires More Parameters than were Passed

From Xojo Documentation

Error message

You didn't pass all the required 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.insertRow 2 "Chicago"


Passing too few parameters:

ListBox1.insertRow "Chicago"
Var c as Color
c=RGB(100,100) //returns "RGB takes 3 parameters"t


In the following examples, myFunction takes two parameters and returns a Double:

d=myFunction(5,6) //correct
d=myFunction (5,6) //also correct
d=myFunction 5,6 //error
d=myFunction //also an error