[Gambas-user] Question about var declaration

Benoit Minisini gambas at ...1...
Fri Aug 29 15:11:36 CEST 2008


On vendredi 29 août 2008, Ron wrote:
> Variables declared with a DIM inside a SUB or FUNCTION can be put
> together like this:
>
> DIM sVar1, sVar2 AS String
>
> This is not valid syntax for public vars at the beginning of a module of
> class, like this:
>
> PUBLIC sVar1, sVar2 AS String
>
> This results in an error 'Missing AS'
>
> Is this on purpose? Or is the compiler too strict?
>
> Regards,
> Ron_2nd
>

The compiler is too strict. :-)

-- 
Benoit Minisini




More information about the User mailing list