Results 1 to 2 of 2

Thread: Confused

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    11

    Question Confused

    When I run the follwing code to get a password from a text file, lblPasswrd.caption returns empty. It is probably a simple mistake, but I'm stuck.

    Code:
    lblCurProc.Caption = "Getting users password!"
    Open App.Path & "/Users/" & UName & ".txt" For Input As #2
    count1 = "1"
    Line Input #2, fin$
    Line Input #2, fin$
    Line Input #2, fin$
    Line Input #2, fin$
    lblPasswrd.Caption = fin$
    wsServer.SendData Chr$(33) & "CMDPASSWORD" & Chr$(0)

    Close #2
    DoEvents

    The Text file is like the following:
    Some Info
    Other Info
    More Info
    MyPass

  2. #2
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    Is any of the other stuff in the caption when you delete one Line Input row?
    And also if you are returning a file path use "\" this not "/"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width