Professional Documents
Culture Documents
Introduction To VB
Introduction To VB
Introduction To VB
What is vb?
vb is a user friendly event driven and partly objected oriented programming
language using which we can develop:
1. database application.
2. web enabled application.
3. variety of other window based application.
What is event?
• Event is any action performed by either performed by user or performed by
program itself. for example mouse-click, key press, window resize etc.
What is the difference between structured/procedure
oriented and event driven programming
Structured/Procedure Oriented Event Driven Programming
Program consists of one or more procedure. Program consists of one or more event
procedure.
Programming task is completed by Programming task is completed by
procedure. event procedure.
The order of execution of procedure is more The order of execution of event procedure
or less predictable. depends on user performed action.
Procedure oriented programming is not Event driven programming is suitable
suitable for window based application. for window based application.
What do you mean by IDE ?
• Ide stands for integrated development environment. it is collection of program
allowing to compose and edit the program, test the program, run the program
and debug the program.
What is module?
• module is collection of procedures and functions
• it provides code reusability and shariblity, avoids code repetition.
• tesng and debugging becomes easier.
type of module:
• form module: normally contains event procedures, other procedure and
function which will be used inside the same form module. extension is .frm
• basic module: normally contains global variables, procedure and function which
can be accessed across other modules. extension is .bas
• class module: contains definition of class, member function and
propertites. extension is .cls
what is documentation? why it is needed?
• documentation of code is very necessary. using documentation we can
increase readability of our program.
• documentation makes the program easily untestable. in future if we are going
to make modification in program it will help greatly.
• using documentation we can store addition information like:
date and time of program
version no. of program
Company for which it was created
author of the code
variables used and purpose
algorithm of program
explanation of statement
2. Creating programs
What is Object?
• object is class variable which is composition of properties, methods and data
member.
• object is fundamental requirement of any object oriented language.
• object has three characteristics:
1. state: state of any object it defines identity of object
2. behaviour: behaviour of any object is decided by member functions(methods)
to which object can respond.
3. method: it is also known as member function it performs computation on data
member or any kind of action.
What is property?
• property of any object is actually member procedure which allows to set value
in data member ( working as mutator) or allows to retrieve value of data
member( working as accessor).