[Gambas-user] Array.ReadOnly - Bug?
Benoît Minisini
g4mba5 at gmail.com
Wed Sep 25 18:11:37 CEST 2019
Le 25/09/2019 à 16:59, Charlie Ogier a écrit :
> Hi,
>
> We've been testing 3.14 and found that you can't 'Add' to a ReadOnly
> array but you can 'Remove' and change a value. Is that correct?
>
> Dim sString as String[] = ["1","2","3","4","5","6"]
> sString.ReadOnly = True
> sString.Remove(0)
> sString[0]=0
> Print.sString.Join(",")
>
> Result = 0,3,4,5,6
>
> Charlie
>
No, it's a bug.
--
Benoît Minisini
More information about the User
mailing list