Results 1 to 4 of 4

Thread: Error on binary file read? FIXED

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878

    Error on binary file read? FIXED

    I have a very simple program:
    VB Code:
    1. Private Sub Command1_Click()
    2.     Open "c:\temp\my.txt" For Binary Access Read As #1
    3.     sDATA = Space$(LOF(1))
    4.     Get #1, , sDATA
    5.     MsgBox sDATA
    6. End Sub
    The file exists OK.
    LOF(1) shows a length of 50.
    But on the GET line, I receive an error of:
    " Run time error 458
    Variable uses an automation type not supported in Visual Basic "

    Any ideas why?
    Last edited by JordanChris; Nov 20th, 2002 at 09:48 AM.

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