[Gambas-user] Array.ReadOnly - Bug?

Charlie Ogier charlie at cogier.com
Wed Sep 25 16:59:42 CEST 2019


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




More information about the User mailing list