Book Shop Management System.
About Visual Basic
Data Flow Diagram
Hardware and Software Requirement
Future Scope and Limitation
References Preface Computer is fast emerging as a daily need in walks of life. The knowledge of computers and programming language has becomebasic skill need to service in today’s information based society. Everybusiness institution and the corporate section, make a use of computerfor making their operation efficient & effective.Book distributors transaction handling is one of the complexprocess and it required computerized system to maintain overalltransactio ns in a easier manner. Due to heavy demand of books inthese competitive worlds, data increase so much. Books shop requiredup to date information about the customer who purchased books orabout the suppliers from where books are purchased. The books shoprequires large amount of data to record and to store, which arecollected from the Book House.
anyfunction or procedure can Access the data. The programmer is responsible forthe structure looks and the flow of program.About Visual Basic 6. Theoretically. Declaring object andenclosing met
. This makesa possible to reuse the modules to be used in other programs.e.In the conventional method the programs are usuallywritten in a top Down manner.In object oriented programming. Once the program execution starts it isimpossible to interrupt the activity. it is very restricted. be has to explicitly write the long and complexcode for the user interface of the program. InPractice. by creating a program From a set of more orless self contained function and procedures. If data is declared locally only the procedure inwhich the data is safer.0 Visual Basic 6. On this data is declared globally. Although writing programscan be a ted ious chore at times Visual Basic educes the effortsrequired on your part and marks programming enjoyable About VisualBasic 6. The likelihood of incorrect datamanipulation is high. which might put it at the mercy pf any function or procedure. At the decision point the programmingbranches depe nding on the point to the program or the status of various variable of the program.
Even driven programming Traditionally programming is essentially linear and is based onthe flow of The execution.0 is Microsoft latest and greatest version of the Visual Basic programming language. by breaking up the program in tosmall sections of independent Procedures or function or using amodular approach i. This may be done either using thestructure programming Approach i. If the programmer wants agood user interface. Thereis no confusion about who control whom. a method (the function orprocedure of an object) Know what data if can manipulate them.e. This operation continues till theprogram i s completed.0 Visual Basic marks many aspects of programming as simpleas dragging graphic object onto the screen with your mouse. Operation runs for fixed span or until theyreached a decision Point. there are generally a very few routines that can be reused with out major Reworking.
In program designed to capture the essence of thedynamic world. notdata.e. adding first the code that will run in response to Specificevents and then any necessary code to coordinate the whole program.It knows what button is and how it work. Programming terminology The terminology that is used in Visual Basic programming are: •
. revolvesaround ready made objects. and it is event driven. This is the principleof operation in windows.In procedural program. suspended orabandoned. The programmer’s job is to determine where. What is caption reads what colors it would He end what happens. Visual Basic is Object oriented. It also knows how tohandle Menus dialogue boxes. how and when an objectappears on the screen what it is to do.Because the program code run through event and as such atany point a Whole range of event might be possible. the order of procedure and controlstatement determines the program. drive and directory list and much else.Object oriented programming captures these logicalrelationship in object Determines the flow of control in objects clarifythe communication along the Component of an application. Massages move through the system. flow of control. i. when an event occurs. All the activity inprogram are triggered by one event or another. This approach of programming is called event driven programming.hod and their data in a Class achieve this. Instead of invoking a Function on some data like in conventionalprogramming method. The processes of program Design reflex the nature of thesystem. this assumption is unrealistic and cumbersome. This implies thatthe programmer knows the entire flow of the program while hedeveloped it. the program flowis not as fixed as in a Conventional program. The Visual Basic system knows allabout this already. And work out wordsfrom here . Each object also Hasit’s own event handling procedures. Generalprocedures the kind use in struct ured programming cannot accessdata with an object without using the object metho ds which areDesigned too manipulate their data. when the event occurs. Objectresponds to the other objects. and Can be easily interrupted. Operations do not have tofollow a set if sequence. Theevents are trapped by the Execute. One begins by creating the screen layout. a message is sent to object.
which would beexecuted when the form is loaded. initially black on which controls areplaced to create the screen display.Forms • Controls • Module • Project • Procedures • Properties • Methods • Events Forms
The form is the basic object used in Visual Basic applicationdevelopment. closed or when the mouse is clickedor moved on the form. It is a window. colors type areprogrammable. Code can be attached to the form. A simple application may use only one form but a complex application may use many form activated by variouscontrols pasted on
. The forms size.
These cannot be madevisible during run time. It is like any other program code. In such a case a codeattached to a form. To file management utilities and spreadsheet style grids. and not as the start point for any activities. Atext label or graphic image.Modules are code segments.Each control can have coed Attached to it. Each of the form on the application issaved in the disk as separate file with an extension “Form” . which are not written inside thescope of any form. because these are BASICcodemodules.
. They have global scope. Most of these procedures will be attached to the event some controls or forms. Their properties. or subroutines. for ex. very to suit their nature. May be There simply to improve thedisplay. In this case. In such case a code attached to a form is notavailable to the other forms.the form. Procedure
All the code in the visual basic program is written in theforms of procedure. Module Code that is attached to form is accessible form anywhere onthat Form. Controls
These are objects which can be pasted on to a form and theseControls range from simple labels. There may beseveral modules in one program and each is saved as separate file. list andother menus. check boxes. but a program more than one form. the code that is required tobe made available to the other forms is written in a separate module. though not all will have. which are used to display text onthe screen on Form. Some of the procedureswould be separately written inside the modules as global functions. And event they can handle. Allthe procedures start with keyword Sub and close with the keyword EndSub. These files have an extension of “BAS”. or picture boxes for buttons.
Properties are simply characteristics of an object or control. They are used to store data describes someparticular attribute of the object such as color. but you can alter these at design time(and youshould alter them at design time)to make your code more descriptive. andthese won’t appear in the properties window . the top left of the form would be move screen coordinates(370. properties can also be used as part of otherstatement:Print your name is: Text1. In thiscase.915When you referred to the property or method of
. The one property that every object must have isthe Name property. vbp”file.move 30.frm files) andthe modules(*. These have an extension of “* .915) asForm1.Project
The project is a file in which all the form files(*. property and in some respectyou can think of them like a variable. forms have a move methodthat moves them to the procedure specified by the parameter.bas files) that make up the entire application. Properties
Each control has a set of predefined properties. They are written in code in the formobject name. You can assign a value to aproperty just as you assign a value to a variable. here we assign thetext string “john smith” to text property of the object called Text1: Text1. method parameters for e. This is use to refer to the object must be unique ina project. they are called make file thusany application wil have a “* .Mac”. These are like procedures.Note that you can’t change a control’s Name property at run time.text=” john smith” Just as with variable. Propertiesare reference in the form of object name.Properties can be set at design time using the properties window orthey can be set and reference within your Visual Basic code. Visual Basic assign default name to control when you addthem to your form. is kept . size or the picturepresent in a control.text Methods Methods are action that can be performing on anobject. method andevents that it will respond to.
.anobject that resides in a form other than one form which you arerefereeing it . the first and last lines of a procedure are addedto your code. Thesemeans preceding name of the object with the name of the form likethis:FormName. the pressing of the key on thekeyboard or the lapsing the particular period of time. This proce4dure will be triggered whenever thatparticular event occurs. you will need to give it a fully qualified reference. If you select one of the item in the list box. so any code that you add to the procedure willbe executed at the same time. Thesewould be movement of the mouse. If you don’t supply a fully qualified reference. You can seewhich events a control can respond to by adding controls to your form and double clicking it to bring up the code window. The proceduredropdown list box in the top right corner of the code window contains alist of all the events that a control can respond to. Events Events are the key to Visual Basic programming each object inthe Visual Basic can be respond to a predefined set of events. VisualBasic assumes that you are referring to the project and form in whichyou are making the reference.ObjectName. This is how you create Visual Basic codeto respond to user interaction and other events.propertyThis sort of reference to an object can be extended in thecase of OLE application to include the name of the project before thename of the form.
.Currently we have to keep track of each and every thing aboutthe book shop on the paper or in register. The main thing of the book shop is to maintain lot of records for the daily transaction of the business. It is necessary forevery business to maintain all records.Current system The book shop contains different types of books of various subjects with various quality according to the customers needsand requirement. The paperwork is becoming very difficult to handle day by day.Some disadvantages are: Manual system involves a lot of paper work. The calculation of total collectionfor day or month or year is very difficult.And the present system of managing Books is very time consuming soit is very difficult to maintain good records and fast service. They have to manage all this unbalance workload.In today’s life people have very little time and manythings to do. Currently no security is provided to the large amount of data of the every book details. which show the profit and lossof the business. so it becomes timeconsuming and costly. This leads to thewastage of stationary. We have to maintain lot of registers to enter these large volumes of data. It becomes very difficult to maintain details of every Book asrecords increases day by day. The chances of errors in calculation of delivery of Books are morein the current manual system.although every one wants to achieve all their ambitions and dreams.
Today it is becoming very difficult to maintain record manually. Thissoftware system easily does the job of maintaining daily records aswell as the transaction according to the user requirements. Analysis is nothing but a planning of creation of software to get proper output from it.T he basic need of the software is to save the time of theuser with the help of all useful information.Some advantages are: User – friendly software Easy to record all data about the Books and its details. All the information of Books changes is given to the userand also the reports are also generated according to the requirementof the user. The proposed system provides lot of facility to the user tostore information of the Books and it provides information in quick timein a systematic manner. Analysis is detailsstudy of projects that you want to show in your software solvingproblems. It provides more reliability for keeping information.
. The processing time on the data is very fast.Proposed system While creating new software we should analyze what isthe basic need of the software. And also to maintain thecollection of data in your computer systematically. Itprovides required data quickly to the user and also in specified mannerto the user. It saves time of the user as well as prevent paper work It provides the security to the database that is large amount of important data of the hospital. so that its easy tounderstand.
Data Flow Diagram
Form Design Main Form:
Login Form: Dim rs As New ADODB.Text = "" Then
.Recordset Public LoginSucceeded As Boolean Dim Counter As Integer Private Sub cmdCancel_Click() 'set the global var to false 'to denote a failed login LoginSucceeded = False Unload Me End Sub Private Sub cmdOK_Click() On Error Resume Next If txtPasswd.