'Script error when function/sub parameter is 3 or more in Lotusscipt IBM Notes 9.0

I have a simple validation code in Lotusscript to check if an entry is already existing in a view. I use a function with 2 parameters passed ByVal, and is working fine.

But when I added a third parameter, it causes script error when called.

Here's a screenshot of the error I get when using 3 parameters in function call:

screenshot of the error

Here's function parameter setup:

function parameter setup

I can use a workaround for the third parameter, but it makes no sense adding nested if's or select case inside the function, and will not make the function flexible for other modules.

How can I solve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source