I'm using some complicated expressions in Reporting Services to control the value, format etc of data in a report (see MSDN).
Is it possible to insert code comments into these expressions, and if so, what is the syntax?
By code comments I mean something like:
// single line comment /* or multi line comment */
Try using apostrophe to write a comment. 'This is a sample comment. EDIT: VB doesn't really have multiline comment. EDIT2: Also, it seems that comment should be in the end.
To comment out source code that is placed within the code section of the Page Properties of a Reporting Services . rdl file simply place an apostrophe in front like so.
Using IIF Function in SSRS We are going to add a new field to the report data set to determine if the Order Year is the Max or Current Year. As shown below, the dataset properties window is opened, and the Fields tab is selected. After clicking Add, at the bottom of the list a new field is added.
Value = “2”, TRUE, FALSE)) SSRS: IIF expression with several ORs Employ the syntax beneath to use Multiple OR in an IIF expression in SSRS. =IIF((Condition1) OR (Condition2) OR (Condition3), True, False) In SSRS, we have two choices for determining whether such a parameter is BLANK or EMPTY: =IIF(Len (Parameters!
It looks like VB Code.
Try using apostrophe to write a comment.
'This is a sample comment.
This is a guess :)
EDIT: VB doesn't really have multiline comment.
However, try using the following to see if it works
'This is a sample comment _ followed by a new line _ and the comment ends
If that doesn't work, you could do
'This is a sample comment 'followed by a new line 'and the comment ends
EDIT2: Also, it seems that comment should be in the end.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With