I am trying to reference a DataTable and I do not know how to achieve this. Please help and thank you very much.
In my code, I would like to assign dtTmp to dtTarget(i) through the reference dtCurr. Is it possible to achieve that in VB.NET?
Private dtA, dtB As DataTable
Dim dtTarget() As DataTable = {Me.dtA, Me.dtB}
For i As Integer = 0 To dtTarget.Length - 1
dtTmp = New DataTable()
'Do something to dtTmp
'assign the new table to the reference
dtTarget(i) = dtTmp
Next