Re: [Gambas-user] String[].Extract not behaving as expected

2014-12-03 Thread Benoît Minisini
Le 04/12/2014 02:50, T Lee Davidson a écrit : > On 12/03/2014 07:59 PM, Benoît Minisini wrote: >>> Obviously, "myStrings.Extract(2, -1)" extracted all elements from the specified Start to the end of the array, not just one element from the specified Start. "myStrings.Extract(2,

Re: [Gambas-user] String[].Extract not behaving as expected

2014-12-03 Thread T Lee Davidson
On 12/03/2014 07:59 PM, Benoît Minisini wrote: >> Obviously, "myStrings.Extract(2, -1)" extracted all elements from the >> >specified Start to the end of the array, not just one element from the >> >specified Start. >> > >> >"myStrings.Extract(2, -2)" gives an "Out of bounds" error. >> > >> >So, I

Re: [Gambas-user] String[].Extract not behaving as expected

2014-12-03 Thread Benoît Minisini
Le 04/12/2014 01:41, T Lee Davidson a écrit : > http://gambaswiki.org/wiki/comp/gb/string[]/extract says: > > [edited-quote] > Function Extract (Start As Integer [, Length As Integer ]) As String[] > > If Length is negative, then Length elements counting backwards from the > specified Start are rem

[Gambas-user] String[].Extract not behaving as expected

2014-12-03 Thread T Lee Davidson
http://gambaswiki.org/wiki/comp/gb/string[]/extract says: [edited-quote] Function Extract (Start As Integer [, Length As Integer ]) As String[] If Length is negative, then Length elements counting backwards from the specified Start are removed. [/edited-quote] But this does not appear to be the