Dim t As Table = e.Form.controls("Table1").Table t.DataTable.deletefor("第一列 is null") Dim r As Row = t.current Dim count As Integer = e.Form.Controls("NumericComboBox1").value Dim str1 As String = r("第二列") Dim str2 As String = r("第三列") Dim mc1 = System.Text.RegularExpressions.Regex.Matches(str1,"[0-9.]+") Dim mc2 = System.Text.RegularExpressions.Regex.Matches(str2,"[0-9.]+") For i As Integer = 1 To count Dim nr As Row = t.addnew If mc1.count > 0 Then Dim s As String = mc1(mc1.count-1).value nr("第二列") = str1.replace(s, format(val(s) + i, "".PadLeft(s.length,"0"))) End If If mc2.count > 0 Then Dim s As String = mc2(mc2.count-1).value nr("第三列") = str2.replace(s, val(s) + i) End If nr("第一列") = r("第一列") Next