Hi,
I would like to use an expression like that in a report :
=IIF(Fields.ItemType <> "Value", Format("{0:P1}", Fields.Value1), Format("{0:## ### ###,}",Fields.Value1))
This expression is in the property 'value' of a textbox. The textbox is inside a 'Table'
Inside the report, I have a message which is : "an error occured while"
'ItemType' is a property of an object which is bound. It's also an enumeration which can contains 'None, Value or Pourcent'
So, if my object's properties contain pourcents, I would like to format my values in a certain way and if my object's properties contain values, I would like to format my values in another way.
Is it possible to do it when an enumeration is evaluate ?
What is wrong inside my expression ?
Thanks for your help.
Regards.
Fred
I would like to use an expression like that in a report :
=IIF(Fields.ItemType <> "Value", Format("{0:P1}", Fields.Value1), Format("{0:## ### ###,}",Fields.Value1))
This expression is in the property 'value' of a textbox. The textbox is inside a 'Table'
Inside the report, I have a message which is : "an error occured while"
'ItemType' is a property of an object which is bound. It's also an enumeration which can contains 'None, Value or Pourcent'
So, if my object's properties contain pourcents, I would like to format my values in a certain way and if my object's properties contain values, I would like to format my values in another way.
Is it possible to do it when an enumeration is evaluate ?
What is wrong inside my expression ?
Thanks for your help.
Regards.
Fred