Is there a way to access a variable by name from a user input string? Here is some code to show you what I mean. Keep in mind this is psuedo-code, to help me convey what I'm asking:
So when Text1.Text = "thisisavar3" it returns whatever string is in thisisavar3, etc.Code:Dim thisisavar1 As Integer Dim thisisavar2 As String Dim thisisavar3 As String Dim thisisavar4 As Long Sub Command1_Click() MsgBox getvariabledata(Text1.Text) End Sub
Thanks.![]()




Reply With Quote