I want to use a string (which can be changed depending on the input to the sub) as part of some code and have no idea how to do it! It was possible in ruby i think so was wondering how its done in vb.net

my specific problem is creating a method which fills a two dimensional array with data from a table but the table name is the variable.

here is the code so far:

Code:
Sub fillarray(ByRef Array() As String, ByVal TableName As String)
        Dim rowview As Data.DataRowView
        Dim str As String
        str = "BCP2DataSet." & TableName & "Row"
        Dim row As str
 End Sub
as you can see i want to create a row object unique to a table and i then later on in the code want to be able to do something like:

Code:
str = TableName & "BindingSource"
row = str.Current
i need to use the variable into the method to construct the code and i dont know how (i am a beginner)...could someone help?