Re: [Gambas-user] String[] initialisation

2009-03-01 Thread Doriano Blengino
Ian Haywood ha scritto: > I would like to initialise a String array to an array of zero elements. > > Setting to [] seems to be the same as NULL, which fires an error if .Length > or .Push are called. > Setting to ["foo"] (i.e. to an array of one dummy element), and then calling > .Clear () > doe

[Gambas-user] String[] initialisation

2009-03-01 Thread Ian Haywood
I would like to initialise a String array to an array of zero elements. Setting to [] seems to be the same as NULL, which fires an error if .Length or .Push are called. Setting to ["foo"] (i.e. to an array of one dummy element), and then calling .Clear () does what I want, but this doesn't look