Showing results for 
Search instead for 
Did you mean: 


Valued Contributor
Valued Contributor


I am try to convert over to NET from VB 6, I have some arrays from VB6 that were variant, when I converted them

to NET they went to objects. For example:


dim dblarray as object (which was variant in VB6)

dim strname as string

dim introw as integer


strname = "A/R"


dblarray(intRow, 4) = name


I get this error

An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll


Additional information: Cast from string "A/R" to type 'Double' is not valid.


it worked in VB6, how do I fix this, any help would be appreciated


Paul Martz

National Steel Car

905-544-3317 ex 3341


Posted by: Paul Martz
Post date: 11/4/2005 1:21:57 AM