Report Designer Language
What language is used in the Script tab of Report Designer? What I want to do is a case statement.
"Roj"
0
-
It is C#, so a Switch/Case statement is available, following this syntax:
http://msdn.microsoft.com/en-us/library/06tc147t(v=vs.110).aspx
0 -
Thank you. I got it to work, but I was perplexed how I couldn't seem to read a field as an integer. I tried things like this in the switch statement:
- (int)rpt.Fields["HOUSEREP"].Value
- rpt.Fields["HOUSEREP"].Value as int
- rpt.Fields["HOUSEREP"].Value as integer
- rpt.Fields["HOUSEREP"].Value as int64
Nothing worked, so I just did .Value as string and the switch statement worked off of that.
"Roj"
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer