Having problem in assigning value to data structure array
Hi all, in VB6 the following statement wont gives me NullReferenceException, but in VB.net it does, can anyone tell me how to assign value into a variable within a data structure? Helps!
Dim lTemp As Integer = 5
gCI.CICC(gCICCTotal).CCId = lTemp
Are you refering to something like this?
That really is not enough information. It also depends on the access level, Public Friend etc.
Partial Class Struct
Inherits System.Web.UI.Page
Friend Structure MyStructure
Friend Id As Integer
Friend Name As String
End Structure
Protected Sub Sample()
Dim itm As New MyStructure
itm.Id = 0
End Sub
End Class