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. Assigns must be the last parameter or the only parameter.

Examples

The following declaration incorrectly uses the Assigns keyword for the first parameter, causing this error:

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

See Also

Assigns keyword.