A Parameter passed by Reference Cannot have a Default Value

From Xojo Documentation

Error message

In the method declaration, you declared a parameter ByRef but also tried to assign it a default value.


Examples

The following parameter declaration is not allowed


You can either remove the ByRef keyword or remove the default value assignment.

See Also

ByRef keyword.