Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Errors

Call to function aFunctionName has too many parameters

Scroll Prev Up Next More

This compiler error will occur when calling a function, if the compiler notices that you are passing more parameters than it expects.

 

➢Although this message looks similar to this one, its cause is usually very different; since it is rarely "obvious" to you that you should add spurious parameters.

 

Check the number of arguments in the function call against its documented syntax. For example, EvalToken accepts two arguments:

// incorrect: three arguments
sResult = EvalToken(n_TokenDate, '[Dddd]', 1)
 
// correct: two arguments
sResult = EvalToken(n_TokenDate, '[Dddd]')

Less frequently, this message can also be due to a mismatch in parentheses in complex nested function calls, such as:

bSameAge = ((Today() - nBirthdate1) mod 365) == (Today() - nBirthdate2) mod 365))

When using nested function calls, check that commas and closing parentheses belong to the intended function call.

 


Topic 108151, last updated on 22-Nov-2026