I'm struggling with arrays.
I have some double variables that need to be covert to in or mm according to an RB button. I don't have problems with these, but the amount of variables its quite high, I was trying to put these variable into an array and multiple or divide them. But when I try to call the variable, the value stays as the original.
I notice that the array was taking the variable value not the variable itself.
Its there a way to make an array of variables? I've done some research but unfortunately nothing helps.
Here's a sample code of what I'm doing.
Public Shared Variable1, Varible2 as Double
Public Shared VarriablesArray() as Double
Variable1 = TextBox1.Text
Variable2 = TextBox2.Text
VariablesArray = {Variable1, Variable2}
For i = 0 to VariablesArray.GetUpperBound(0)
VariablesArray(i) = VariablesArray(i)*25.4
Next
Until here it works, but when I MsgBox Variable1 its the same value as TextBox1.Text not the value after math.