[Gambas-user] Signal #6 example
Daniel Campos
dcamposf at ...626...
Fri Sep 1 13:28:15 CEST 2006
2006/9/1, nando <nando_f at ...1382...>:
> I was assuming .CLEAR could be used with a global static string array
> but perhaps not.
>
> Version 1.0.17
>
> 'global string array
> DIM terminals[10000] AS STRING
>
>
What syntax is this? DIM can not be used for global declarations, and
the way to declarate a string array is:
PUBLIC terminals as String[]
In the dev. version you can add the elements count (I do not remember
in the stable version):
PUBLIC terminals as String[10000]
>
> sub config()
>
> terminals.clear <---raised signal #6
>
This is a bug, Gambas should not finish with a signal even if the
syntax is wrong... I've tested in the dev. version and seems to not
suffer that problem. Benoit?
Daniel
More information about the User
mailing list