[Gambas-user] Question about var declaration
Ron
ron at ...1740...
Fri Aug 29 15:15:49 CEST 2008
Benoit Minisini schreef:
> 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. :-)
>
>
Hmm, I smell a little VB like inconsistancy, yukk! ;-)
Regards,
Ron_2nd
More information about the User
mailing list