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." ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
