Type mismatch when point

Type mismatch when point

mdhutchinson
Advisor Advisor
233 Views
1 Reply
Message 1 of 2

Type mismatch when point

mdhutchinson
Advisor
Advisor
For j = 0 To UBound(xtype)
Debug.Print xtype(j) & " - " & xdata(j)
Next

This code works untill a World Space Position (1011) is found... then a Type Missmatch error is encountered...

How can I code it to handle this?
0 Likes
234 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
1011 is a variant that holds 3 doubles. You cannot print that to the
immediate window.

Use the Locals window to examine variables rather than trying to rely on
Debug.Print.

--
R. Robert Bell


wrote in message news:5421681@discussion.autodesk.com...
For j = 0 To UBound(xtype)
Debug.Print xtype(j) & " - " & xdata(j)
Next

This code works untill a World Space Position (1011) is found... then a Type
Missmatch error is encountered...

How can I code it to handle this?
0 Likes