If e.DataCol.Name = "条款码" Then
Dim Filter As String = "[条代码] = '" & e.NewValue & "'"
e.DataRow("条款内容") = DataTables("依据内容码").GetComboListString("内容", Filter).replace("|", " ")
End If
我需要合并后,能分行,该怎么改,求帮忙
e.DataRow("条款内容") = DataTables("依据内容码").GetComboListString("内容", Filter).replace("|", vbcrlf)
上面的解答我看了,是合并文本时按照序号进行排序
我想问的,在文本合并统计后,原先文本没有序号的,想着能不能通过代码,自动增加序号(根据文本的行数增加)
dim ss() as stirng = DataTables("依据内容码").GetComboListString("内容", Filter).split("|")
Dim s As String
For i As Integer = 0 To ss.length - 1
s = s & vbcrlf & (i + 1) & "," & ss(i)
Next
e.DataRow("条款内容") = s.trim(vbcrlf )