[Gambas-user] String[] initialisation

Ian Haywood ihaywood at ...1979...
Sun Mar 1 13:35:43 CET 2009


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 right.

Ian Haywood




More information about the User mailing list