Zum Hauptinhalt gehen

Report Designer Language

Kommentare

2 Kommentare

  • Permanently deleted user

    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
  • Permanently deleted user

    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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.