To clear out more... This is allowed: IIf(1 = 2, function1(arg), function2(arg))
And functions 1 and 2 can return integer, string, etc. But this is *not* allowed: IIf(1 = 2, function1, function2) So, IIf cannot take pointer to function as argument. Jussi On Sat, Mar 17, 2012 at 00:12, Emil Lenngren <emil.lenng...@gmail.com>wrote: > They should work, since it is strings you are passing to IIf. > > 2012/3/16 Bruce Bruen <bbr...@paddys-hill.net> > > > 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 > > > > > > > > > ------------------------------------------------------------------------------ > > This SF email is sponsosred by: > > Try Windows Azure free for 90 days Click Here > > http://p.sf.net/sfu/sfd2d-msazure > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user