'获取数据表列表
dim table_list as data.datatable = getschematable(dbfconn, "table")
me.cb_table_list.datasource = table_list.defaultview
me.cb_table_list.valuemember = "table_name"
me.cb_table_list.displaymember = "table_name"
private function getschematable(byval connection as data.oledb.oledbconnection, byval type as string)
' 获取数据表列表
'type 有:"table,view,access table,system table",
type = type.toupper
connection.open()
dim table_list as data.datatable
table_list = connection.getoledbschematable(data.oledb.oledbschemaguid.tables, new object() {nothing, nothing, nothing, type})
connection.close()
return table_list
end function