[Gambas-user] New feature in the Array classes

Bruce Steers bsteers4 at gmail.com
Tue Feb 9 20:56:43 CET 2021


On Tue, 9 Feb 2021 at 19:38, Benoît Minisini <g4mba5 at gmail.com> wrote:

> Le 09/02/2021 à 20:36, Benoît Minisini a écrit :
> > If Find() returns the value -N, then the unfound element must be
> > inserted at position is (N - 1).
> >
>
> ...at position (N - 1).
>

hmm , (N - 1)  or (N - 1)  I'm not sure what one to use ;)
(0 - N) would be my first guess ;)

correction to my last reply..
A quick...
*myArray.Add(sText , 0 - myArray.Find(sText))*
to keep things sorted.

Wishing well.
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210209/5fe27454/attachment.htm>


More information about the User mailing list