Dim dlg As new OpenFileDialog dlg.MultiSelect = True If dlg.ShowDialog = DialogResult.OK Then Dim name As String = FileSys.GetName(dlg.FileName) If name.length >= 23 Then Dim str As String = name.SubString(0,22) Dim dt As DataTable = DataTables("表A") Dim fdr As DataRow = dt.Find("第一列 = '" & str & "'") If fdr Is Nothing Then fdr = dt.AddNew fdr("第一列") = str Dim ls = fdr.lines("第二列") ls.add(name) fdr.lines("第二列") = ls End If End If