Not sure i understand you correctly, but there's no way to create variable programmatically from string. You can create a
Dictionary(Of String, Object)[
^] which can hold variable names and their addresses.
Sub Main
Dim StrArr1 As String() = {"StrArr2"}
Dim StrArr2 As String() = {"StrArr3", "StrArr4"}
Dim StrArr3 As String() = {"-1"}
Dim StrArr4 As String() = {"StrArr5"}
Dim StrArr5 As String() = {"-1"}
Dim StrArr As Object
Dim ListOfVariables As New Dictionary(Of String, Object)
ListOfVariables.Add("StrArr1", StrArr1)
ListOfVariables.Add("StrArr2", StrArr2)
ListOfVariables.Add("StrArr3", StrArr2)
ListOfVariables.Add("StrArr4", StrArr4)
ListOfVariables.Add("StrArr5", StrArr5)
StrArr = ListOfVariables("StrArr2")
For Each s In StrArr
Console.WriteLine(s)
Next
End Sub
Returns:
StrArr3
StrArr4