我是VB新手。我創建了下面返回列表的方法。嘗試從列表中獲取數據時出現錯誤[VB]
Public Function WHSList(ByVal fp As Stream, ByVal importFile As String, ByVal ym As Integer) As List(Of Integer)
Return WHSLst
End Function
我試圖用下面的代碼在不同的方法中檢索列表的值。但是,我收到錯誤。
Private Sub AddFD45DM(ByVal dt As FD45DMDataSet.FD45DMDataTable, ByVal line As String, ByVal fileinfo As FD45DMFileInfo)
Dim WHSLst As New List(Of Integer) = WHSList(ByVal fp As Stream, ByVal importFile As String, ByVal ym As Integer)
End Sub
幫助請。
究竟是什麼錯誤? –
聲明結束。 – Abhinav