[Gambas-user] Array.Remove() documentation
Benoît Minisini
gambas at ...1...
Mon Apr 7 22:34:29 CEST 2014
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
More information about the User
mailing list