G
Guest
Hi everyone,
I have 5 string in my array that I get from MS Access DB.
Public mDov(0) as string and I fill with my for loop. The result as shown
below
mDov(0) = "ABC_01"
mDov(1) = "ABC_02"
mDov(2) = "ABC_03"
mDov(3) = "ABC_04"
mDov(4) = "ABC_05"
Now I need to create 5 Public type DataTable and the each table name based
on the above strings.
How to I create in runtime 5 DataTable (in future might be more) as:
Public Shared tbl_ABC_01 as DataTable
Public Shared tbl_ABC_02 as DataTable
Public Shared tbl_ABC_03 as DataTable
Public Shared tbl_ABC_04 as DataTable
Public Shared tbl_ABC_05 as DataTable
As you can see the Table name came from above array.
I also need to crate runtime string array and each array name based on the
above strings. But I don't know how?
I appricate your kind help and reading my post.
Thank you.
Rgds,
Niyazi
I have 5 string in my array that I get from MS Access DB.
Public mDov(0) as string and I fill with my for loop. The result as shown
below
mDov(0) = "ABC_01"
mDov(1) = "ABC_02"
mDov(2) = "ABC_03"
mDov(3) = "ABC_04"
mDov(4) = "ABC_05"
Now I need to create 5 Public type DataTable and the each table name based
on the above strings.
How to I create in runtime 5 DataTable (in future might be more) as:
Public Shared tbl_ABC_01 as DataTable
Public Shared tbl_ABC_02 as DataTable
Public Shared tbl_ABC_03 as DataTable
Public Shared tbl_ABC_04 as DataTable
Public Shared tbl_ABC_05 as DataTable
As you can see the Table name came from above array.
I also need to crate runtime string array and each array name based on the
above strings. But I don't know how?
I appricate your kind help and reading my post.
Thank you.
Rgds,
Niyazi