title: Using Right function in If statement causes syntax error
body: <p>I have a multiple-value-single-string as a parameter field in a report in Report Builder 3.0 (e.g. 20124, 20125). Now I want to split up this string, and show "Summer 2012" instead of "20124" and "Fall 2012" instead of "20125. I am using Visual Basic. Here is my two functions I have made in Report Builder 3.0 custom code. The error is in the second function in the "If Right(yearterm)..." line. It gives me a syntax error. If I write "String.Right" it gives me the error: "'Right' is not a member of 'String'". If i take out the whole "If statement" the report will run but "20124,20125" gives me this: ", 2012, 2012". </p>
  
  <p>How can I make this work?</p>
  
  <pre><code>Public Function SplitParameterValues(ByVal parameter As Parameter) As String
      Dim result As String
      Dim a(0 To 10) As String
      a = Split(parameter.Value, ",")
  
      For i As Integer = 0 to a.length - 1
          result = result +", "  + YearTermTranslation(a(i))
      Next
  
      Return result
  End Function
  
  Public Function YearTermTranslation(ByVal yearterm As String) As String
      Dim result As String
      Dim term As String
      Dim year = Left(yearterm, 4)
  
      If Right(yearterm, 1) = 5
      Then term = "Fall"
      Else If Right(yearterm, 1) = 4
      Then term = "Summer"
      Else If Right(yearterm, 1) = 3
      Then term = "Spring"
      Else term = "Winter"
      End If
  
      result = term + " " + year
  
      Return result
  End Function
  </code></pre>