Can You Tell Me That What Are Various Procedure Types In Visual Basic?
Can you tell me ?
1 Answer - Sort by: Date | Rating
There are commonly four types of procedures that are used in visual basic. These are as:
1. event procedures
2. visual basic procedures
3. sub procedures
4. function procedure
Event procedures are those that respond to the events of controls on the form modules. There are various controls (GUI components) that may be added to a form. Each control has some events (like clicking the control with mouse button or pressing a keyboard key etc) to which it reacts.
When one of these control events occurs, the relevant event procedure is called.
The visual basic procedures are used to perform some common tasks. These procedures (like; IIf, format$ etc) are built in, i.e. provided by Microsoft to facilitate the programmer. Programmer does not need to define his own procedure to perform some operations that are handled by these visual basic procedures.
If the programmer wants to perform a task that can not be done by any visual basic procedure available, then the visual basic allows the programmer to define a required procedure. The programmer defined procedure may be a function procedure or a sub procedure.The basic difference between a sub procedure and function procedure is that, a function procedure returns a value to the function caller while sub procedure does not returns any value.
1. event procedures
2. visual basic procedures
3. sub procedures
4. function procedure
Event procedures are those that respond to the events of controls on the form modules. There are various controls (GUI components) that may be added to a form. Each control has some events (like clicking the control with mouse button or pressing a keyboard key etc) to which it reacts.
When one of these control events occurs, the relevant event procedure is called.
The visual basic procedures are used to perform some common tasks. These procedures (like; IIf, format$ etc) are built in, i.e. provided by Microsoft to facilitate the programmer. Programmer does not need to define his own procedure to perform some operations that are handled by these visual basic procedures.
If the programmer wants to perform a task that can not be done by any visual basic procedure available, then the visual basic allows the programmer to define a required procedure. The programmer defined procedure may be a function procedure or a sub procedure.The basic difference between a sub procedure and function procedure is that, a function procedure returns a value to the function caller while sub procedure does not returns any value.
0
0
- What Is A Declarative Programming Language?
- In Windows Based Programming,what Do You Mean By Controls,properties Of Control,events And Methods?
- How To Enable LAN When Not Active Or Functioning?
- Without Using Arithmetic Operator How To Add Two Values In Php?
- How To Make Your Phone Java Supported?
- Write Down The Complete Html Code To Generate A Web Page In The Following Format As Shown Below?
- What Is The Difference Between Two Tier And Three Tier Client/server Architecture?
- Describe The Problem With Two- Tier Server Dbms Architecture?
- What Is The Difference Between Two-tier And Three Tier Client Server Architecture?
- How To Make A Simple Programming?
- What Is A Structured Form?
- Compile A 1000 To1250 Word Survival Guide That Serves As A Resource Throughout Your Program?
- How Many Numbers Between 1 And 1000 Have An Odd Quantity Of Divisors?
- What Are The Service In Rmi?
- How To Do Loop Stitch For Attaching Palette's?
- Generate An Object-oriented Design For A System That Keeps Tracks Of Your CD And DVD Collection?
- What Is Local Procedural Call?
- What Are Difference Between Local And Remote Procedural Call?
- Where Can I Learn DirectX Or OpenGL In C++?
- How Can I Compress Image Through Java?
- How To Enable Java Script On Windows Vista?
- How To Et Rid Of Error 1606?
- How To Enable Javascript On A Cricket Captr A200 Cell Phone With A 6.3.0.7."Openwave" Browser That I Cant Change Either,or Can I?
- How To Enable Javascript On A Cricket A200?
- How Can I Create A Online Banking Database?

New Comment - Comments are editable for 5 min.