Visual Basic 6.0 Documentation
Visual Basic 6.0 Documentation
MUNGER UNIVERSITY
MUNGER
PROJECT DOCUMENTATION
b.c.a 405
BCA project submitted as partial fulfillment for the award of degree
of
Bachelors of Computer Application (BCA 4th Sem)
Session:-2021-2024
Submitted by:
There are three special controls, called as File controls, which deal with files and directories.
We will also understand how to use these controls in this chapter.
File handling
Record: one logical section of a file that holds a related set of data. If the
file contains Student information, a record would hold the information on one
student: name, address, studentID, etc. If there are 5,000 students registered, the
file contains 5,000 records.
Field: part of a record that defines a specific information. In the Student
record, FirstName, LastName, StudentID, are fields. The field is the lowest element
in the file. Even if the information consists of one character, Sex is M or F, it is still
considered a separate field. The field is the equivalent of the variable - we call it a
variable when it is used to store data in memory and call it a field when it stores in
a file.
I/O: stands for Input/Output. Whenever you work with a file you have to
have ways of reading data from the file (that'sInput) and ways of writing data to
the file (that's Output). I/O operations consist of all those commands that let you
read and write files.
Types of files
There are basically three types of files you can work with:
Sequential file: this is a file where all the information is written in order
from the beginning to the end. To access a given record you have to read all the
records stored before it. It is in fact like listening to a tape - you can go forward or
back but you can't jump directly to a specific song on the tape. In fact, in the old
days, magnetic tape was the most commonly used medium to store data and all
files were organized this way. Now, it is still useful when there is a small amount of
data to store, a file of application settings, for example. It can even be of use when
there is a large amount of data to be stored, provided it all has to be processed at
one time, eg: a file of invoices to produce a statement at month-end.
Random file: a file where all records are accessible individually. It is like a
CD where you can jump to any track. This is useful when there is a large quantity
of data to store and it has to be available quickly: you have to know if a part is in
stock for a customer who is on the phone; the program doesn't have time to search
through 10,000 records individually to locate the correct one. This method of
storage became popular when hard-disk drives were developed.
Binary file: this is a special, compacted form of the random file. Data is
stored at the byte level and you can read and write individual bytes to the file. This
makes the file access very fast and efficient. We won't be covering this type of file
in these exercises. If you need to find out more about it, go to the VB Reference
Manual.
Access Mode
For Mode in the Open statement indicates how the file will be used. There are five
access modes:
Input: open for sequential input; the file will be read sequentially starting at
the beginning.
Output: open for sequential output; records will be written sequentially
starting at the beginning; if the file does not exist, it is created; if it does exist, it is
overwritten.
Random: open for random read and write; any specific record can be
accessed.
Append: sequential output to the end of an existing file; if the file does not
exist it is created; it does not overwrite the file.
Binary: open for binary read and write; access is at byte level.
If access mode is not specified in the Open statement, For Random is used by
default.
Edit
Use the EDIT command to enter data into the system. With EDIT and its
subcommands, you can create, modify, store, submit, retrieve, and delete data
sets with sequential or partitioned data set organization.
Edit and Continue is a feature for Visual Basic debugging that enables you
to change your code while it is executing in Break mode. After code edits
have been applied, you can resume code execution with the new edits in place
and see the effect
.
View
Project
Format
Debug
Run
Query
Diagram
Tools
Add-line
Window
Help
File – A file is a collection of data stored in a disk with a
specific name and a directory path . when a file is
opened for reading or writing , it becomes a stream the
stream is basically the sequence of byte passing
through the communication path.
Similarly , everyone ‘s work is different I will try to
solve the task that I will do.
Following are the names of all the designs to make the
project good.
Add standard exe project
Add form
Menu editor
Open project
Save project group
Cut
Copy
Paste
Find
Undo
Redo
Start
Break
End
Project explorer
Properties window
Form layout window
Object browser
Tool box
Data view window
Visual component browser
I will create the project using the toolbox
Component of tool box
Pointer
Picture box
Label
Text box
Frame
Command button
Check box
Option button
Combo box
List box
Hscrollbar
Vscrollbar
Timer
DriveListbox
DriListbox
FileLIstbox
Shape
Line
Image
Data
OLE
File function
Edit function
View
Project
Format
Debug function
Manufacturer HP
MUNGER UNIVERSITY
MUNGER
PROJECT DOCUMENTATION
b.c.a 405
BCA project submitted as partial fulfillment for the award of degree
of
Bachelors of Computer Application (BCA 4th Sem)
Session:-2021-2024
Submitted by:
Under Guidance: Ayush Ashish (521280006)
Mr.Anjani Kumar Rohit kumar (521280028)
Abshek panday (521280035)
(Senior Faculty) Niraj kumar (521280020)
B.C.A (4th semester)
Session 2021-2024
Manufacturer HP
Visual basic 2nd project in VB 6.0
There are three special controls, called as File controls, which deal with files and directories.
We will also understand how to use these controls in this chapter.
File handling
Record: one logical section of a file that holds a related set of data. If the
file contains Student information, a record would hold the information on one
student: name, address, studentID, etc. If there are 5,000 students registered, the
file contains 5,000 records.
Field: part of a record that defines a specific information. In the Student
record, FirstName, LastName, StudentID, are fields. The field is the lowest element
in the file. Even if the information consists of one character, Sex is M or F, it is still
considered a separate field. The field is the equivalent of the variable - we call it a
variable when it is used to store data in memory and call it a field when it stores in
a file.
I/O: stands for Input/Output. Whenever you work with a file you have to
have ways of reading data from the file (that'sInput) and ways of writing data to
the file (that's Output). I/O operations consist of all those commands that let you
read and write files.
Types of files
There are basically three types of files you can work with:
Sequential file: this is a file where all the information is written in order
from the beginning to the end. To access a given record you have to read all the
records stored before it. It is in fact like listening to a tape - you can go forward or
back but you can't jump directly to a specific song on the tape. In fact, in the old
days, magnetic tape was the most commonly used medium to store data and all
files were organized this way. Now, it is still useful when there is a small amount of
data to store, a file of application settings, for example. It can even be of use when
there is a large amount of data to be stored, provided it all has to be processed at
one time, eg: a file of invoices to produce a statement at month-end.
Random file: a file where all records are accessible individually. It is like a
CD where you can jump to any track. This is useful when there is a large quantity
of data to store and it has to be available quickly: you have to know if a part is in
stock for a customer who is on the phone; the program doesn't have time to search
through 10,000 records individually to locate the correct one. This method of
storage became popular when hard-disk drives were developed.
Binary file: this is a special, compacted form of the random file. Data is
stored at the byte level and you can read and write individual bytes to the file. This
makes the file access very fast and efficient. We won't be covering this type of file
in these exercises. If you need to find out more about it, go to the VB Reference
Manual.
Access Mode
For Mode in the Open statement indicates how the file will be used. There are five
access modes:
Input: open for sequential input; the file will be read sequentially starting at
the beginning.
Output: open for sequential output; records will be written sequentially
starting at the beginning; if the file does not exist, it is created; if it does exist, it is
overwritten.
Random: open for random read and write; any specific record can be
accessed.
Append: sequential output to the end of an existing file; if the file does not
exist it is created; it does not overwrite the file.
Binary: open for binary read and write; access is at byte level.
If access mode is not specified in the Open statement, For Random is used by
default.
Edit
Use the EDIT command to enter data into the system. With EDIT and its
subcommands, you can create, modify, store, submit, retrieve, and delete data
sets with sequential or partitioned data set organization.
Edit and Continue is a feature for Visual Basic debugging that enables you
to change your code while it is executing in Break mode. After code edits
have been applied, you can resume code execution with the new edits in place
and see the effect
.
View
Project
Format
Debug
Run
Query
Diagram
Tools
Add-line
Window
Help
File – A file is a collection of data stored in a disk with a
specific name and a directory path . when a file is
opened for reading or writing , it becomes a stream the
stream is basically the sequence of byte passing
through the communication path.
Similarly , everyone ‘s work is different I will try to
solve the task that I will do.
Following are the names of all the designs to make the
project good.
Add standard exe project
Add form
Menu editor
Open project
Save project group
Cut
Copy
Paste
Find
Undo
Redo
Start
Break
End
Project explorer
Properties window
Form layout window
Object browser
Tool box
Data view window
Visual component browser
I will create the project using the toolbox
Component of tool box
Pointer
Picture box
Label
Text box
Frame
Command button
Check box
Option button
Combo box
List box
Hscrollbar
Vscrollbar
Timer
DriveListbox
DriListbox
FileLIstbox
Shape
Line
Image
Data
OLE
Double click on timer open the coding section type the coding
Second project in visual basic completed
THANK YOU