Gopher2011
Well-known member
Does anyone know if I can create objects on the fly?
Currently I have
DI_01 is an object on my form. Microsoft.VisualBasicPowerpack.OvalShape
Digital_In.Add(DI_01)
...and so on...
Digital_In.Add(DI_16)
What I want to do is reference the object at runtime
Dim i As Integer
For i = 1 To 16
Digital_In.Add("DI_0" & i)
Next
Is this possible as my example does not work.
Goph
Currently I have
DI_01 is an object on my form. Microsoft.VisualBasicPowerpack.OvalShape
Digital_In.Add(DI_01)
...and so on...
Digital_In.Add(DI_16)
What I want to do is reference the object at runtime
Dim i As Integer
For i = 1 To 16
Digital_In.Add("DI_0" & i)
Next
Is this possible as my example does not work.
Goph