-- 怎么写dataset的代码
以下代码,我有连接fastreport,,在狐表中保存代码时,提示未定义类型,datacolumn, 红色字体部分要怎么写(建立多列关联)
Dim FDataSet = New System.Data.DataSet
Dim Table1 As New System.Data.DataTable
Dim Table2 As New System.Data.DataTable
Table1=DataTables("成绩表").BaseTable.copy
FDataSet.Tables.Add(Table1)
Table2=DataTables("表A").BaseTable.copy
FDataSet.Tables.Add(Table2)
Dim mc1 As String = DataTables("表A").BaseTable.copy.TableName
Dim mc2 As String = DataTables("成绩表").BaseTable.copy.TableName
Dim spgg1() As DataColumn = {FDataSet.Tables(mc1).Columns("第一列"),FDataSet.Tables(mc1).Columns("第二列")}
Dim spgg2() As DataColumn = {FDataSet.Tables(mc2).Columns("学号1"),FDataSet.Tables(mc2).Columns("学号2")}
FDataSet.relations.add("ttt",spgg1,spgg2,False)
\'新建关系