|
-
Aug 22nd, 2000, 01:23 PM
#1
Thread Starter
Fanatic Member
here is some code and for some reason that is beyond my control it doesn't work
Private Sub Command1_Click()
On Error Resume Next
Set fs = CreateObject("Scripting.FileSystemObject")
Set File = fs.GetFile("C:\reginfo.txt")
If Err.Number = 53 Then 'File not found
MsgBox "File Not Found"
End If
If Err.Number = 0 Then 'File found
frmsplash.Visible = True
Open "reginfo.txt" For Input As #1
frmsplash.Label1 = Input(LOF(1), 1)
Close #1
End If
End Sub
any ideas ?
it doesn't display the text from the file into label1
PLEASE HELP
Merlin ?
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
[ Galahtech.com] | [ My Site] | [ Fishsponge] | [ UnixForum.co.uk]
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
|