v2.0-a080-d1c5ddf - Sort function Topic is solved

Report problems with documented functionality
User avatar
Ragnar
Posts: 613
Joined: 30 Sep 2013, 15:25

v2.0-a080-d1c5ddf - Sort function

25 Jun 2017, 16:26

The Sort function breaks the content of its InputVar permanently if its return value is not assigned to a variable (Edit: or assigned to a new variable):

Code: Select all

test := "3`n2`n1"
MsgBox test        ; -> 3`n2`n1
MsgBox Sort(test)  ; -> 1`n2`n3
MsgBox test        ; -> 3
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: v2.0-a080-d1c5ddf - Sort function  Topic is solved

25 Jun 2017, 20:53

Thanks for the report, although it would be more accurate to simply say that Sort modifies its input variable.

You won't see that modification if you overwrite the variable's value, be it with the return value or something else.

Edit: Fixed in v2.0-a082.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 26 guests