Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
呵呵,你原来的代码太高级了,应该简单点:
If e.DataCol.Name = "内容" Then
Dim dr As Row = Tables("表B").Current
Dim Val As String = DataTables("表C").GetComboListString("内容","")
dr("第一列") = Val.Replace("|",",")
End If
dr("第一列") = Val.Replace("|",",")
感谢狐爸,就是这个不会搞,没有理解出来,
Replace
查找给定的子字符串,并用另一个子字符替换掉找到的子字符串。
语法:
Replace(OldValue, NewValue)
参数:
OldValue: | 要查找的子字符串 |
NewValue: | 用于替换的子字符串 |
例如:
Dim
s As String ="abc123efg"执行后,你可以看到变量s的值为:abc789efg