F
Fred Nelson
I'm new to VB.NET and I have a situation in which I would like to interpret
a varialble - this may have another name in vb so I will explain what I
mean.
In FoxPro you can "interpret" a variable and get its value
For example:
dim vara as string = "1234"
dim varb as string = '5678"
dim myvar as string
dim myresult as string
myvar = "vara"
myresult = &myvar
In the last line myvar is "interpreted" using the "&" to be "vara" and the
variable "myresult" obtains the value that is in "vara" just as if I had the
following statement:
myresult = vara
Does anyone know if there is a way to do this in VB.NET - or for that matter
what this is called?
Your help would be greatly appreciated!
Thanks,
Fred
a varialble - this may have another name in vb so I will explain what I
mean.
In FoxPro you can "interpret" a variable and get its value
For example:
dim vara as string = "1234"
dim varb as string = '5678"
dim myvar as string
dim myresult as string
myvar = "vara"
myresult = &myvar
In the last line myvar is "interpreted" using the "&" to be "vara" and the
variable "myresult" obtains the value that is in "vara" just as if I had the
following statement:
myresult = vara
Does anyone know if there is a way to do this in VB.NET - or for that matter
what this is called?
Your help would be greatly appreciated!
Thanks,
Fred