[Gambas-user] Bug or feature with IIF

Benoit Minisini gambas at ...1...
Tue Oct 31 20:24:30 CET 2006


On Tuesday 31 October 2006 02:31, Lorenzo Tejera wrote:
> I'm trying to use old visual basic code, and this not work
>
> IIf(bUltimo, "", ",")
>
> bUltimo is boolean, gambas give an error with the first parameter ("" the
> empty string), say   "wanted null and give a String instead"
>
> If I put
>
> IIf(bUltimo, " ", ",")
>
> And " " space string works fine, but I can't return a "" empty string.....
>
> In visual basic it works; it's a bug or a feature benoit?
>
> regards
> Lorenzo

It is a bug. Which version of Gambas do you use?

-- 
Benoit Minisini





More information about the User mailing list