Make your own free website on Tripod.com

Chapter 9


Home

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

Chapter 7

Chapter 8

Chapter 9

Chapter 10

Chapter 11

Chapter 12

Chapter 13

Chapter 14

Chapter 15

Table of Contents


File Handling

A database is a file of information. A record is the information about a particular entry. The pieces of information that make up each record are called fields. Three file types can be opened in Visual Basic: the sequential file, the random access file, and the binary file.

The Get and Put statement fetch and place records in random access file. The EOF () function is True when a file is empty. EOF stands for "End Of File".

To keep a program from stopping when a run-time error occurs, special statements trap the error. The On Error Resume Next statement allows execution to proceed to the next line. On Error GoTo transfers program execution to a line number or line lable.

A line label is a name of up to 40 characters followed by a colon. The line label provides a name for a line so that it may be referred to by a GoTo statement. The line label must be the first thing on the line.