Last post Aug 04, 2009 05:08 PM by stevesimon
Aug 04, 2009 01:06 PM|stevesimon|LINK
I checked my site properties and it is set to framework 3.5, but the new If() function is not recognized. It gives me the "... must have matching end if ..." error.
Aug 04, 2009 02:49 PM|MetalAsp.Net|LINK
I think it's IIF (two I's)
Aug 04, 2009 04:12 PM|stevesimon|LINK
Right, but it has its drawbacks. Since 3.5 there is a true ternary If with just the one f --> If(condition, true, false). It looks just like the IIf function, but operates differently.
Aug 04, 2009 04:46 PM|MetalAsp.Net|LINK
I should have never responded as VB is not one of my strength would you post your code so maybe I can
Aug 04, 2009 05:08 PM|stevesimon|LINK
I figured out the problem. Thanks for the help, though :-)