[Gambas-user] Compiler does not complain?

Benoit Minisini gambas at ...1...
Sun Oct 26 00:38:25 CEST 2008


On samedi 25 octobre 2008, Doriano Blengino wrote:
> If I write:
>
>     IF gvPlugins[i, 0] = "" THEN
>     ...
>
> where gvPlugins is a GridView, the compiler accept what seems to me an
> error.
> The interpreter then executes without errors, and the test is always true.
> What had to be written should:
>
>     IF gvPlugins[i, 0].text = "" THEN
>     ...
>
> I think the compiler should catch this nonsense - or am I missing
> something?
>
> Regards.
>

It is a nonsense, but as "" and NULL are the same thing in Gambas, the 
comparison takes sense.

Regards,

-- 
Benoit Minisini




More information about the User mailing list