S
Stephen Miller
Hi,
I am converting a code sample found at
http://support.microsoft.com/default.aspx?scid=kb;en-us;828279 from C#
to VB and I am stuck on one line of code. How would I convert:
object[] pos = new object[numaxes];
(where numaxes is an int) to VB.Net?
I have tried
Dim pos() As Object = New Object(numaxes)
,
Dim pos(numaxes) As Object = New Object
and
Dim pos As Object() = New Object
ReDim pos(numaxes)
but these attempts all generate errors
Thanks,
Stephen
I am converting a code sample found at
http://support.microsoft.com/default.aspx?scid=kb;en-us;828279 from C#
to VB and I am stuck on one line of code. How would I convert:
object[] pos = new object[numaxes];
(where numaxes is an int) to VB.Net?
I have tried
Dim pos() As Object = New Object(numaxes)
,
Dim pos(numaxes) As Object = New Object
and
Dim pos As Object() = New Object
ReDim pos(numaxes)
but these attempts all generate errors
Thanks,
Stephen