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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user