[Gambas-user] Array.Remove() documentation

Tobias Boege taboege at ...626...
Mon Apr 7 22:18:20 CEST 2014


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

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list