I'm receiving an error messages that states:
Too many arguments to 'Public Sub Close()'.
Can someone point me in the right dircetion?
[CODE=vbnet]Public Class HelloWorld
Private Sub btnHello_Click( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnHello.Click
Dim vName As String
vName = txtName.Text
MsgBox("Hello World" & vName)
End Sub
Private Sub btnExit_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles btnExit.Click
End
End Sub
Private Sub btnDisplay_Clic k(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnDisplay.Clic k
'Declare variables
Dim vFile As String
Dim vInputString As String
Dim iInput
'Create memory space for input file
iInput = FreeFile()
'Pick up the file
vFile = "C:\Users\B lack & Gold\Documents\ School work\402 VB.zip"
'Loop through all entries in the file
Do Until EOF(iInput)
LineInput("#iIn put, vInputString")
MsgBox(vInputSt ring)
Loop
'Housekeeping
Close("#iInput" )
End Sub
End Class[/CODE]
Too many arguments to 'Public Sub Close()'.
Can someone point me in the right dircetion?
[CODE=vbnet]Public Class HelloWorld
Private Sub btnHello_Click( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnHello.Click
Dim vName As String
vName = txtName.Text
MsgBox("Hello World" & vName)
End Sub
Private Sub btnExit_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles btnExit.Click
End
End Sub
Private Sub btnDisplay_Clic k(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnDisplay.Clic k
'Declare variables
Dim vFile As String
Dim vInputString As String
Dim iInput
'Create memory space for input file
iInput = FreeFile()
'Pick up the file
vFile = "C:\Users\B lack & Gold\Documents\ School work\402 VB.zip"
'Loop through all entries in the file
Do Until EOF(iInput)
LineInput("#iIn put, vInputString")
MsgBox(vInputSt ring)
Loop
'Housekeeping
Close("#iInput" )
End Sub
End Class[/CODE]
Comment