Illegal pass by value
You tried to pass an argument by value that may not be passed by value, either by using parentheses around the argument, or by using the ByVal keyword on an argument in a call to an external C function.
You may have inadvertently put parentheses around an argument in a sub or function call. Use parentheses on arguments in sub and function calls only if you are using the Call keyword.
The following arguments cannot be passed by value:
- Arrays
- Lists
- Variables of a user-defined data type
- Object reference variables
In addition, only arguments of type String or Variant can be passed by value to the LotusScript® Len function. Arguments of other data types cannot be passed by value.
Remove the parentheses or the ByVal keyword.