M
Marco Trapanese
Hello again,
I have four arrays:
Dim InputA(20) as Integer
Dim InputB(15) as Boolean
Dim InputC(6) as Single
Dim InputD(30) as Integer
They represent the physical input of four external boards. So I have
four classes, one for each board. They acquire via the serial port the
data and store the value in those arrays.
Now I want to create a single array which represent the logical input of
my application. Something like this:
Dim Inputs(71) as Object
Each element of this array is strictly related to another element of the
previous arrays. Ok, no problem at all.
The real problem is I don't want to update manually the Inputs() array
when one value of the others changes. It would be nice if I can define a
pointer to a variable... so I could write:
Inputs(3) = *InputB(7)
How to do that in VB.NET?
Thanks!
Marco / iw2nzm
I have four arrays:
Dim InputA(20) as Integer
Dim InputB(15) as Boolean
Dim InputC(6) as Single
Dim InputD(30) as Integer
They represent the physical input of four external boards. So I have
four classes, one for each board. They acquire via the serial port the
data and store the value in those arrays.
Now I want to create a single array which represent the logical input of
my application. Something like this:
Dim Inputs(71) as Object
Each element of this array is strictly related to another element of the
previous arrays. Ok, no problem at all.
The real problem is I don't want to update manually the Inputs() array
when one value of the others changes. It would be nice if I can define a
pointer to a variable... so I could write:
Inputs(3) = *InputB(7)
How to do that in VB.NET?
Thanks!
Marco / iw2nzm