Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
accessing an offline account
#5
Code:
Sub GetChar(ByVal Name As String)
Dim f As Long
Dim s As String, X As Long
    f = FreeFile
    frmServer.fileList.Path = App.Path & "\accounts"
    For X = 0 To frmServer.fileList.ListCount
        Open (frmServer.fileList.Path & "/" & frmServer.fileList.List(X)) For Input As #f
            Do While Not EOF(f)
                Input #f, s
                If Trim(LCase(s)) = ("name=" & Trim(LCase(Name))) Then
                    Close #f
                    Call LoadTempAccount(frmServer.fileList.List(X))
                    Exit Sub
                End If
            Loop
        Close #f
    Next X
End Sub

This gives me an error on this line:

Code:
Open (frmServer.fileList.Path & "/" & frmServer.fileList.List(X)) For Input As #f
- Path not found.

Tried this and it also fails to work:
Code:
Open (frmServer.fileList.Path & "\" & frmServer.fileList.List(X)) For Input As #f
- File not found
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)