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

T Lee Davidson t.lee.davidson at ...626...
Thu Dec 4 02:50:08 CET 2014


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 guess my question should be, what is the intended behavior?
>> >
>> >
> The doc is false. -1 means all elements until the end, and other
> negative values have no meaning.

That makes sense. Thank you for confirming.

But, I cannot correct the documentation. The only Markdown Syntax I see 
for that page is, "--> /comp/gb/boolean[]/extract", and I have no idea 
what to do with that.


-- 
Lee
__________

"Artificial Intelligence is no match for natural stupidity."




More information about the User mailing list