[Gambas-user] Question about var declaration

Ron ron at ...1740...
Fri Aug 29 15:07:35 CEST 2008


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




More information about the User mailing list