?
Solved

what is eof

Posted on 2009-07-09
2
Medium Priority
?
405 Views
Last Modified: 2013-12-20
My question is what does 'EOF' represent.
Explicitly: Are you on the last record or beyond the last record ?

If I open a text file and read until EOF, I know that I have read all chrs/ or lines of the file.
If I try to read one more character or line, vb will throw an error.

But, If I am reading a db table, and I read records until EOF, am I beyond the last record or on it.
If I attempt to read another record, will I get an error or the last record.

I even saw one suggestion on-line that suggested it was different for Client side vs. Server side cursors ?
0
Comment
Question by:sidwelle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 24815995
>>My question is what does 'EOF' represent.

The simple answer is "End Of File" but you already know that. Historically (I remember those from my old mainframe days), it was a real character in a file (just like the End Of Line) and processes were reading the file until they reach that characters. This expression as persisted even if in many cases the character does not exist anymore.
 
>>Explicitly: Are you on the last record or beyond the last record ?

You are past the last record.


0
 

Author Closing Comment

by:sidwelle
ID: 31601659
Thanks for the imput.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question