Hi,
How do i convert this code from vb 6.0 to vb.net
Type AutoRunDetails
Name As String
doControls As Boolean
ReportTotal As Integer
ReportType(1 To 20) As String
ReportName(1 To 20) As String
End Type
Also how do add values in it
example vb 6.0
RunDetails(BatchNo).Report
Type(RptCo
unt) = "RI"
but if i do the same in vb.net
by:
Structure AutoRunDetails
Dim Name As String
Dim doControls As Boolean
Dim ReportTotal As Short
<VBFixedArray(20)> Dim ReportType() As String
<VBFixedArray(20)> Dim ReportName() As String
Public Sub Initialize()
ReDim ReportType(20)
ReDim ReportName(20)
End Sub
End Structure
code:
RunDetails(BatchNo).Report
Type(RptCo
unt) = "RI"
i get error object not set to reference
Start Free Trial