J
JackBlack
Hi, all! Need a little help tracking down a runtime error problem. I'm
getting this error:
"Unable to cast object of type 'myStruct[]' to type 'myStruct[]'... but the
two types are identical!
I have a class method that's building an array of user-defined structures
(see below), and returning that array to the calling routine. I'm getting
the error on that calling line.
The structure in both the webform and class are defined like this:
--------------------------------------------------------------------
Public Structure sttNavBarItems
Public strNavBarFeature As String
Public strNavBarACL As String
Public strNavBarURL As String
Public strNavBarParams As String
Public strNavBarTip As String
Public strNavBarPosition As Int16
End Structure
The array's are defined as such:
------------------------------------------------------------
Dim arrResult( ) as sttNavBarItems
Never seen this error before when both variables are of the same defined
type. What am I missing here?
Thanks!
Jack
getting this error:
"Unable to cast object of type 'myStruct[]' to type 'myStruct[]'... but the
two types are identical!
I have a class method that's building an array of user-defined structures
(see below), and returning that array to the calling routine. I'm getting
the error on that calling line.
The structure in both the webform and class are defined like this:
--------------------------------------------------------------------
Public Structure sttNavBarItems
Public strNavBarFeature As String
Public strNavBarACL As String
Public strNavBarURL As String
Public strNavBarParams As String
Public strNavBarTip As String
Public strNavBarPosition As Int16
End Structure
The array's are defined as such:
------------------------------------------------------------
Dim arrResult( ) as sttNavBarItems
Never seen this error before when both variables are of the same defined
type. What am I missing here?
Thanks!
Jack