For Each bm As String In DataTables("设置列宽信息").GetValues("表名", "是否显示 = true") Dim fdr As DataRow = DataTables("保存设置").Find("表名 = '" & bm & "'") If fdr Is Nothing Then fdr = DataTables("保存设置").AddNew fdr("表名") = bm End If Dim str As String = "" For Each dr As DataRow In DataTables("设置列宽信息").Select("表名 = '" & bm & "' and 是否显示 = true") str &= dr("列名") & "|" & dr("列宽") & "|" Next fdr("列宽设置") = str.TrimEnd("|") Next
|