G
Guest
Hi all,
I have the following code, without option Strict on, it seems work OK, but
when option strict is on. I have a problem for the assignment.
Dim ctrlarr(5) As PeopleInfo 'poepleinfo is user control in project
Dim i As Integer
If Not Session("ctrlarr") Is Nothing Then
ctrlarr = Session("ctrlarr")
End If
It says option strict on disallows implicit conversion from 'system.object'
to '1-dimensional array of subway.peopleinfo'
I guess I would have the same problem when I assign
Session("ctrlarr")=ctrlarry in the first page if I turn on option Strict.
What should I do in this case?
I have the following code, without option Strict on, it seems work OK, but
when option strict is on. I have a problem for the assignment.
Dim ctrlarr(5) As PeopleInfo 'poepleinfo is user control in project
Dim i As Integer
If Not Session("ctrlarr") Is Nothing Then
ctrlarr = Session("ctrlarr")
End If
It says option strict on disallows implicit conversion from 'system.object'
to '1-dimensional array of subway.peopleinfo'
I guess I would have the same problem when I assign
Session("ctrlarr")=ctrlarry in the first page if I turn on option Strict.
What should I do in this case?