Assigns can only be used on the last parameter

From Xojo Documentation

Error message

You used the Assigns keyword in a Method declaration for a parameter other than the last parameter. If there is only one parameter, the use of Assigns is permitted.


Examples

The following declaration uses the Assigns keyword for the first parameter.

Sub SquareIt(Assigns x As Double, y As Double)

See Also

Assigns keyword.