1:
用Adapter对象
设置完Adapter的属性后:
adapter.tablemappings.add("table","table1")
adapter.fill(dataset)
...
adapter.tablemappings.add("table","table2")
adapter.fill(dataset)
用Adapter对象
设置完Adapter的属性后:
adapter.tablemappings.add("table","table1")
adapter.fill(dataset)
...
adapter.tablemappings.add("table","table2")
adapter.fill(dataset)
dim tmpTable as datatable
dsDataSet = new dataset("tmpDS")
dsDataSet.Tables.Add tmpTable
取字段:
dim tmpTable as datatable
dim strValue as string
dim i as short
dim j as short
for i=0 to dsDataSet.Tables.count
tmpTable = dsDataSet.Tables(i)
for j=0 to tmpTable.rows-1
strvalue=tmptable.rows(j)("xxxx")
next j
next i