A
Alex
I want to create a dynamic array of activx controls, so I do:
ThreadsNum = Val(ThreadsEdit.Text)
ReDim Line(ThreadsNum)
For i = 1 To ThreadsNum
Dim WithEvents aLine As EMH323AxLib
Set aLine = New EMH323AxLib.EMH323
Set Line(i) = aLine ' is it correct? is there a shorter way?
'some code here
Next i
ThreadsNum = Val(ThreadsEdit.Text)
ReDim Line(ThreadsNum)
For i = 1 To ThreadsNum
Dim WithEvents aLine As EMH323AxLib
Set aLine = New EMH323AxLib.EMH323
Set Line(i) = aLine ' is it correct? is there a shorter way?
'some code here
Next i