Use the right number of parameters to call the function.
Following code will compile, but on runtime the foo
method will fail with "PARAMETER error" message.
Class Sample.Foobar
{
ClassMethod foo(pstrArg1 As %String, pstrArgs2 As %String)
{
Write !,pstrArg1
Write !,pstrArg2
}
ClassMethod bar()
{
Do ..foo("a","b","c") // Wrong number of parameters
}
}