I used the suggested below custom SSRS code by user:20977 to create a function that would split a string and return the splitted value or "".
This all worked just fine, but suddenly stopped working and I cannot for the heck of it understand why?
Public Function ExtractCode(Combined As String, Position As Integer) As String <br>
if (Split(Combined," - ").Length >=Position) Then <br>
Return Split(Combined," - ").GetValue(Position-1) <br>
Else <br>
Return "" <br>
End If <br>
End Function
this code is called from the report with:
=Code.ExtractCode(Fields!FreightForwarder_c.Value, 1)
=Code.ExtractCode(Fields!FreightForwarder_c.Value, 2)etc..
What could have gone wrong here?
thanks in advance for any suggestions.