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

Doriano Blengino doriano.blengino at ...1909...
Fri Sep 5 17:25:31 CEST 2008


Benoit Minisini ha scritto:
> 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,
>
>   
This seems to me a little strange - there is already the Iif() 
function... is this shorter name "If()" for some VB(tm) compatibility? I 
am just curious about it...






More information about the User mailing list