|
-
Sep 10th, 2001, 01:57 PM
#1
Thread Starter
New Member
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
-
Sep 10th, 2001, 02:01 PM
#2
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|