[Gambas-user] Fixed arrays still dynamic

Moviga Technologies moviga at ...3488...
Mon Oct 5 23:07:18 CEST 2015


I thought when one declares a fixed array, one should not be able to add 
new elements to it?
But, this works:

' Gambas module file

Public Sub Main()

Dim sCarBrands As New String[5]

   sCarBrands = ["Volvo", "Saab", "Fiat", "Aston Martin", "Skoda"]
   sCarBrands.Add("Audi")
   sCarBrands.Add("VW")
   Print sCarBrands.Join(", ")

End




More information about the User mailing list