能帮忙看看这个吗?就是提取列后面10位为文字的字符
现在就是还能会把“】”符号提取出来,能帮忙改一下吗?就是改为只提取文字字符,其他都不要 什么逗号,括号 空格,都跳过。

此主题相关图片如下:qq截图20181127111212.jpg

If e.DataCol.Name = "文件夹编号转换_商品名称" Then
Dim Oldstr As String =e.DataRow("文件夹编号转换_商品名称")
Dim Newstr As String = ""
For i As Integer = Oldstr.Length - 1 To 0 Step - 1
If Asc(Oldstr.Chars(i)) < 0 AndAlso Newstr.Length < 10 Then
Newstr = Oldstr(i) & Newstr
End If
Next
Newstr = "" & NewStr & ""
'e.DataRow("第六列")
e.DataRow("文件夹编号转换_后10位字符")="" & Newstr & ""
End If
[此贴子已经被作者于2018/11/27 11:15:11编辑过]