A ParamArray cannot be Passed by Reference
From Xojo Documentation
Error message
You tried to declare a parameter using both the ParamArray and ByRef keywords. Parameters declared as ParamArray cannot be passed by reference.
Sample Code
This invalid parameter declaration causes this error:
ParamArray ByRef a() As Integer