[Gambas-user] IIf syntax

Bruce Bruen bbruen at ...2308...
Fri Mar 16 23:03:50 CET 2012


On Fri, 2012-03-16 at 22:42 +0100, Benoît Minisini wrote:
> Le 16/03/2012 22:21, Emil Lenngren a écrit :
> > Yeah, I alreadyd did that ^^
> > It says "a" is an integer even though it should be a string...
> > I think it is not really meant that you should be able to pass functions
> > into IIf...
> >
> > /Emil
> >
> 
> In revision #4557, I have forbidden the use of Class or Function values 
> in IIf() and in the array constructor [ ... ].
> 
> Regards,
> 
I hope this means that the many hundreds of display code lines I have
like:

gvwHorse[r,c].Text = IIf(IsNull(CurrentHorse.Age),"N/R",Format
$(CurrentHorse.Age,"##"))

are still going to work?

Bruce





More information about the User mailing list