Results 1 to 10 of 10

Thread: [RESOLVED] Input past EOF

Threaded View

  1. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Input past EOF

    Are you taking into considerations about the extra [....] lines in the file?

    [SendKey]
    [HotKey]
    [Activate]

    When you first open your input file and do your first Input #1, tooresBind1
    statement your first line that actually is read is [SendKey].

    I always use Line Input #1 rather than Input #1. Not sure what the dufference is but I don't think it has to do with your problem but I do think you need to consider the extra lines.

    Also I see that in your loop you are reading in 6 lines per itteration through the loop but your file is not in multiples of 6. Don't quite understand your thinking here.

    Your input file has 63 lines.

    You loop 10 time reading in 60 records

    Then it starts to loop again; the 11th time

    It reads in 3 more records

    This is your 63 lines

    Then it tried to read one more....this is your Input Past EOF error

    So, you need to allow for the [....] lines and you need to make sure your number of lines to process in the file are equal in multiples of the number of lines you process each time through the loop.
    Last edited by jmsrickland; Apr 4th, 2009 at 03:54 PM.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

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