Call to function aFunctionName has too few parameters

Navigation:  Messages > Macro Compiler Messages > Errors >

Call to function aFunctionName has too few parameters

Previous pageReturn to chapter overviewNext page

This compiler error will occur when calling a function, if the compiler notices that you did not pass the number of parameters it expects.

 

Example

 

sRESULT = EvalToken('[Dddd]') // incorrect

sRESULT = EvalToken(n_TokenDate,'[Dddd]') // correct

 

This usually occurs, as above, when one of the parameters is "obvious" in your mind, but not for the compiler.

 

You can avoid using the wrong number of parameters (or in the wrong order), by using the Code Completion feature. Whenever you are about write a function call, press the F3 key, and select the function from the list which appears (you can even get help on each function while the list is up), by clicking on it.

 

The function name will then be pasted into the code editor, where your cursor was, showing plainly the number and type of arguments expected by the function.


Topic 108150 updated on 11-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?calltofunctionafunctionnamehas.htm