Solved

what is eof

Posted on 2009-07-09
2
396 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
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…

809 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