Académique Documents
Professionnel Documents
Culture Documents
Ú =O= ::
A procedural Oriented programming language emphases
on procedures, functions used in writing a program!
ut concentrates on functions rather then the data being
used!
Ú Object oriented =rogramming language ::
0 OO= is a programming language that concentrates on
objects and methods to design different applications.
0 OO= has many interesting features such as«
Encapsulation
=olymorphism
unheritance
Data abstraction
Ú Õ
Ú For example ::
Text box as an object has different prosperities and
different methods!
1) Object :: all the tools we use from tool box like
label, command button, check box etc are
objects.
2) =roperties :: properties are the attributes of the
objects«
3) Methods ::actions associated with objects are
called methods«
e.g. Text1.setfocus
Ú All code is written in procedures in VB.
Ú Each of the procedure is one of the sub procedure
which starts with =rivate sub and ends with END
sub
Ú ub procedures are also referred as sub
programs.
Ú Name of it will be given as objectname
_eventname
Example::
Command1_Click()
1) User interaction:: As user clicks mouse button or presses
any key on keyboard an event can be triggered. For
example:: clicking a command button or typing in a text
box etc..
2) Object event:: objects can trigger their own events.. For
example :: timer triggers its own TuME event after a
specified time interval.
3) Operating ystem :: our application may also handle
events triggered by O . For example when a part of
window is hidden by another window event is triggered
by O , and our application can handle it!
4) =rogramming events ::By writing codes even we can
trigger event! For example :: code can be written to click
a command button on specific condition without even
using a mouse!
1) =lanning
1) Design user interface
2) =lan properties
3) =lan basic code [pseudocode]
2) Coding / =rogramming
1) Design user interface
2) et properties
3) Write basic code
åOOD DA !!