Concatenate with IIF leads to error
Posted: Mon Oct 18, 2010 4:56 am
Hi,
In a text component I am trying to concatenate several fields with IIF conditions:
I am getting this error "Operator '+' cannot be applied to operands of type 'object' and 'object'".
I tried to change the operator ("&" or "," which leads to a "no overload" error), to put more brackets, but couldn't find what's wrong.
Could you please help?
Thank you very much.
In a text component I am trying to concatenate several fields with IIF conditions:
Code: Select all
{IIF(labels.A==0,"","A ")
+IIF(labels.B==0,"","B ")
+IIF(labels.C==0,"","C ")
+IIF(labels.D==0,"","D ")}
I tried to change the operator ("&" or "," which leads to a "no overload" error), to put more brackets, but couldn't find what's wrong.
Could you please help?
Thank you very much.