How about if I use double?
The code also fails.
The main point is
VB should be able to convert variable types on the fly
unless the conversion is not compatible
Juan Pablo González wrote:
And why do you want to have that array as Variant() ? When you create the
array as variant, the coordinates are dimmed as integer, which might be why
the AddPolyline code fails.