Documentation (VB Project)
Documentation (VB Project)
SUBMITTED BY:-
ANKUSH GUPTA
(0991921707)
DOCUMENTATION OF VISUAL BASIC PROJECT
SUBMITTED BY:-
DEEPANSHU SHARMA
(1011921707)
DOCUMENTATION OF VISUAL BASIC PROJECT
SUBMITTED BY:-
NISHANT BHARDWAJ
(1021921707)
DOCUMENTATION OF VISUAL BASIC PROJECT
SUBMITTED BY:-
DEEPAK WALIA
(1031921707)
CONTENTS
• Acknowledgement
• Abstract
• index
• Introduction
• Software Requirement
General Description
Overall Description
• Flow Chart
• Application Coding
ACKNOWLEDGEMENT
We would like to register our heartfelt thanks to Ms.Gayatri for her kind
suggestions and invaluable assistance without which our project work would not
have completed. We take the opportunity to express our sincere gratitude to Ms.
Gayatri for providing invaluable guidance and constant encouragement throughout
the project work. We are thankful to her for constructive criticism and valuable
suggestions, which benefited us a lot while making this project. Through this
column we would like to express our thanks to her for her cooperation and consent
without which I might not be able to accomplish this task.
CERTIFICATE
This Subject on which this dissertation has been done by his original
contribution towards the discipline of computer lab and it has not
previously formed the basis for the award of the Degree, Diploma, or
other similar title to any candidate
Signature
Date - ( )
Place - …………………..
CERTIFICATE
This Subject on which this dissertation has been done by his original
contribution towards the discipline of computer lab and it has not
previously formed the basis for the award of the Degree, Diploma, or
other similar title to any candidate
Signature
Date - ( )
Place - …………………..
CERTIFICATE
This Subject on which this dissertation has been done by his original
contribution towards the discipline of computer lab and it has not
previously formed the basis for the award of the Degree, Diploma, or
other similar title to any candidate
Signature
Date - ( )
Place - …………………..
CERTIFICATE
This Subject on which this dissertation has been done by his original
contribution towards the discipline of computer lab and it has not
previously formed the basis for the award of the Degree, Diploma, or
other similar title to any candidate
Signature
Date - ( )
Place - …………………..
ABSTRACT
The project is based on an application which eases the work of directory oriented
user work. It contains vast information for the user. The user’s first name, middle
name, last name, telephone number, address are contained in it. It can hold
indefinite number of user’s information. At any time or at any moment the data
related to user can be edited without any haste. Not only that the information can
be edited, it is also possible to search any user information by only putting only
one of the details. The application is not only user friendly but also good in it
resources.
INTRODUCTION
Project Scope:
The telephone directory application is developed for users who wish to access,
edit, search or modify the telephonic details of the user by knowing only single
thing out of first name, middle name or last name and address of the user about
whom the information is to be accessed.
Scope:
The scope of this application cannot be considered too wide or too narrow the
factor defining its scope is its volume of data storage and as the way to use this
application is very easy and understandable therefore anyone can use it without
any problem.
Purpose/objective
The purpose of this telephone directory application is to add, modify, delete, search
telephonic details of the various users and to provide them anytime just by taking
any single detail key out of address, phone no., first middle or last name of the
telephone user.
Limitations:
The only limitation of this application is the feature of taking or say requirement of
any single detail key without which no further function can be done in the
application.
System testing
System testing of software or hardware is testing conducted on a
complete, integrated system to evaluate the system's compliance with its
specified requirements. System testing falls within the scope of black
box testing, and as such, should require no knowledge of the inner
design of the code or logic.
• Unit Test.
• Functional Test
• Performance Test
• System Test
• Integration Test
• Beta Test
• Acceptance Test.
Unit Test
The first test in the development process is the unit test. The source code
is normally divided into modules, which in turn are divided into smaller
units called units. These units have specific behavior. The test done on
these units of code is called unit test. Unit test depends upon the
language on which the project is developed. Unit tests ensure that each
unique path of the project performs accurately to the documented
specifications and contains clearly defined inputs and expected results.
System Test
Several modules constitute a project. If the project is long-term project,
several developers write the modules. Once all the modules are
integrated, several errors may arise. The testing done at this stage is
called system test. System testing ensures that the entire integrated
software system meets requirements. It tests a configuration to ensure
known and predictable results. System testing is based on process
descriptions and flows, emphasizing pre-driven process links and
integration points.
Testing a specific hardware or software installation. This is typically
performed on a COTS (commercial off the shelf) system or any other
system comprised of disparent parts where custom configurations and/or
unique installations are the norm.
Functional Test
Functional test can be defined as testing two or more modules together
with the intent of finding defects, demonstrating that defects are not
present, verifying that the module performs its intended functions as
stated in the specification and establishing confidence that a program
does what it is supposed to do.
Acceptance Testing
Testing the system with the intent of confirming readiness of the product
and customer acceptance.
Some agile and iterative proponents confuse the term SDLC with
sequential or "more traditional" processes; however, SDLC is an
umbrella term for all methodologies for the design, implementation, and
release of software.
1.1 Glossary:
Term Definition
M.I Middle name of the telephone user in data.
Search Engine Engine used to search telephonic information.
Personal information Data including all details of the telephone user.
References:
Black Book of Visual Basic
Software Engineering (Galgotia publications)
Microsoft Developer’s Network forum
www.a1vbcode.com
General Description
Telephone directory is fast software that can be used to access any information
recorded in the records of telephone users by any key known it may be user’s first
name, last name, middle name or address. Telephone directory creates vast data
storage software. You can keep as many as telephone numbers with its user’s
details that can be accessed any time. You can store as many telephone numbers
with regarding details as you want. Different users can be identified easily with
their different middle name or last name as well. Any user can access the
application.
The Overall Description
Anybody can easily find or access the telephonic details recorded in the directory
using any known detail of the telephone user. This application provides a vast
recording capacity to store telephonic details with address and other details. When
a user wants to use the system he is asked for any of the recorded detail and then
they can search full details very comfortably. This application helps the user a lot
to draw any information about the telephone user. The interface, which includes
simple telephonic details for no reason other than to provide them to you whenever
you want, would be better served by a more standard layout that makes options
readily and easily available. In our tests, the program demonstrated good speed,
even when accessing. If you require these information and need to edit, remove,
add or search them, you should definitely give telephone directory a try.
Hardware configuration
CORE2DUO
Ram 1GB
Hard disk
DATA FLOW DIAGRAMS
0 LEVEL DFD
Option Explicit
End Sub
Dim vI As Integer
If MsgBox("Are you sure you want to delete this entry?", vbQuestion + vbYesNo, "Confirm
Delete") = vbYes Then
With dtaDB
.RecordSource = "SELECT * FROM DirectoryList WHERE ID='" & vID & "'"
.Refresh
With .Recordset
If .BOF = False Then
.Delete
Call Default_Obj
Call Show_Existing("SELECT * FROM DirectoryList")
Else: MsgBox "The record you want to delete doesn't exist.", vbExclamation, "Not
Found"
Exit Sub
End If
End With
End With
Else
Exit Sub
End If
End Sub
EditUpdate_Record:
With dtaDB
.RecordSource = "SELECT * FROM DirectoryList WHERE ID='" & vID & "'"
.Refresh
With .Recordset
If .BOF = True Then
MsgBox "The record you want to edit/update doesn't exist.", vbExclamation, "Not
Found"
Exit Sub
Else
.Edit
!LastName = txtLastName
!FirstName = txtFirstName
!Mi = txtMI
!TelNum = txtTelNum
!Address = txtHomeAddress
.Update
Call Default_Obj
Call Show_Existing("SELECT * FROM DirectoryList")
End If
End With
End With
End Sub
End Sub
End Sub
With Me
.txtLastName = ""
.txtFirstName = ""
.txtMI = ""
.txtHomeAddress = ""
.txtSearchKey = ""
.txtTelNum = ""
.cboSearchBy.Text = .cboSearchBy.List(0)
.cmdCloseCancel.Caption = "&Close"
.cmdDelete.Enabled = False
.cmdEditUpdate.Caption = "&Edit"
.cmdEditUpdate.Enabled = False
.cmdNewSave.Caption = "&New"
.fraInfo.Enabled = False
.fraSearch.Enabled = True
End With
End Sub
lstExisting.ListItems.Clear
With dtaDB
.RecordSource = vSQL
.Refresh
With .Recordset
If .BOF = True Then Exit Sub
.MoveFirst
While Not .EOF
Set vLst = lstExisting.ListItems.Add(, , !ID)
vLst.SubItems(1) = !LastName
vLst.SubItems(2) = !FirstName
vLst.SubItems(3) = !Mi
vLst.SubItems(4) = !Address
vLst.SubItems(5) = !TelNum
.MoveNext
Wend
End With
End With
End Sub
Dim vI As Integer
Call Default_Obj
cmdEditUpdate.Enabled = True
cmdDelete.Enabled = True
vI = lstExisting.SelectedItem.Index
vID = lstExisting.SelectedItem
txtLastName = lstExisting.ListItems(vI).ListSubItems(1)
txtFirstName = lstExisting.ListItems(vI).ListSubItems(2)
txtMI = lstExisting.ListItems(vI).ListSubItems(3)
txtHomeAddress = lstExisting.ListItems(vI).ListSubItems(4)
txtTelNum = lstExisting.ListItems(vI).ListSubItems(5)
End Sub
Call Show_Existing(vSQL)
End Sub
FORM 2 CODING
Option Explicit
End Sub
Dim vI As Integer
If MsgBox("Are you sure you want to delete this entry?", vbQuestion + vbYesNo, "Confirm
Delete") = vbYes Then
With dtaDB
.RecordSource = "SELECT * FROM DirectoryList WHERE ID='" & vID & "'"
.Refresh
With .Recordset
If .BOF = False Then
.Delete
Call Default_Obj
Call Show_Existing("SELECT * FROM DirectoryList")
Else
MsgBox "The record you want to delete doesn't exist.", vbExclamation, "Not
Found"
Exit Sub
End If
End With
End With
Else
Exit Sub
End If
End Sub
EditUpdate_Record:
With dtaDB
.RecordSource = "SELECT * FROM DirectoryList WHERE ID='" & vID & "'"
.Refresh
With .Recordset
If .BOF = True Then
MsgBox "The record you want to edit/update doesn't exist.", vbExclamation, "Not
Found"
Exit Sub
Else
.Edit
!LastName = txtLastName
!FirstName = txtFirstName
!Mi = txtMI
!TelNum = txtTelNum
!Address = txtHomeAddress
.Update
Call Default_Obj
Call Show_Existing("SELECT * FROM DirectoryList")
End If
End With
End With
End Sub
End Sub
End Sub
With Me
.txtLastName = ""
.txtFirstName = ""
.txtMI = ""
.txtHomeAddress = ""
.txtSearchKey = ""
.txtTelNum = ""
.cboSearchBy.Text = .cboSearchBy.List(0)
.cmdCloseCancel.Caption = "&Close"
.cmdDelete.Enabled = False
.cmdEditUpdate.Caption = "&Edit"
.cmdEditUpdate.Enabled = False
.cmdNewSave.Caption = "&New"
.fraInfo.Enabled = False
.fraSearch.Enabled = True
End With
End Sub
lstExisting.ListItems.Clear
With dtaDB
.RecordSource = vSQL
.Refresh
With .Recordset
If .BOF = True Then Exit Sub
.MoveFirst
While Not .EOF
Set vLst = lstExisting.ListItems.Add(, , !ID)
vLst.SubItems(1) = !LastName
vLst.SubItems(2) = !FirstName
vLst.SubItems(3) = !Mi
vLst.SubItems(4) = !Address
vLst.SubItems(5) = !TelNum
.MoveNext
Wend
End With
End With
End Sub
Dim vI As Integer
Call Default_Obj
cmdEditUpdate.Enabled = True
cmdDelete.Enabled = True
vI = lstExisting.SelectedItem.Index
vID = lstExisting.SelectedItem
txtLastName = lstExisting.ListItems(vI).ListSubItems(1)
txtFirstName = lstExisting.ListItems(vI).ListSubItems(2)
txtMI = lstExisting.ListItems(vI).ListSubItems(3)
txtHomeAddress = lstExisting.ListItems(vI).ListSubItems(4)
txtTelNum = lstExisting.ListItems(vI).ListSubItems(5)
End Sub
Call Show_Existing(vSQL)
End Sub
THE DATABASE