[Gambas-user] Bug or feature in Version 3.0 (snapshot a week ago)

Benoit Minisini gambas at ...1...
Fri Sep 5 14:48:01 CEST 2008


On vendredi 05 septembre 2008, gambas at ...1938... wrote:
> When I type:
> If(bla = x) then
> During compilation, I get the error:
> Not enough arguments to if()
>
> When I type:
> If (bla = x) then
> All went fine.
>
> The only difference between the two statements is the missing whitespace
> after "If" in the first one.
>
> Greetz
> Stevie
>

Yes, because If() is a function. The IF statement does not need to take 
parenthesis.

Regards,

-- 
Benoit Minisini




More information about the User mailing list