1
我有一個字符串,如0 + 9948.00000 + -4254.39910 + 38040。我想拆分此字符串以「+」符號,這將給我ssrs動態拆分字符串
GetValue(0)= 0
GetValue(1)= 9948.00000
GetValue(2)= -4254.39910
GetValue(3)= 38040
但我的問題是,字符串是動態的,它可以是「0 + 9948.00000」。所以這次我會得到#error。以下是我用作表達式的代碼。
=CInt(Split(Fields!M_BUDV1.Value,"+").GetValue(0))
+ CInt(Split(Fields!M_BUDV1.Value,"+").GetValue(1))
+ CInt(Split(Fields!M_BUDV1.Value,"+").GetValue(2))
+ CInt(Split(Fields!M_BUDV1.Value,"+").GetValue(3))
在此先感謝