The "backwards" bit is wrong. As it would imply counting indexes ... , 3, 2, 1, 0.
I think it would be good thing to put examples if possible. Something like: Dim iArr As New Integer[] iArr.Insert([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) iArr.Remove(5, 5) and iArr.Remove(5, -1) yields same result, which is: [1, 2, 3, 4, 5] Jussi On Mon, Apr 7, 2014 at 11:34 PM, Benoît Minisini < [email protected]> wrote: > Le 07/04/2014 22:18, Tobias Boege a écrit : > > Hi, > > > > the documentation[0] says about Array.Remove() that if Length is > negative, > > then all the elements from Index on backwards are removed, i.e. > > > > hArray.Remove(i, -42) > > > > is equivalent to > > > > For j = 0 To i > > hArray.Remove(0) > > Next > > > > But in practice (using Dim hArray As Array = myIntegerArray), it does > > > > For j = i To hArray.Max > > hArray.Remove(i) > > Next > > > > What is the intended behaviour? > > > > [0] http://gambaswiki.org/wiki/comp/gb/array/remove > > > > The second version. > > See: http://gambasdoc.org/hist/comp/gb/array/remove?v3 > > "p.wheeler" changed my sentence, but I don't know if his new sentence > means what I wanted. > > -- > Benoît Minisini > > > ------------------------------------------------------------------------------ > Put Bad Developers to Shame > Dominate Development with Jenkins Continuous Integration > Continuously Automate Build, Test & Deployment > Start a new project now. Try Jenkins in the cloud. > http://p.sf.net/sfu/13600_Cloudbees > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
