You can simplify programming tasks by breaking programs into smaller logical components. These components — called procedures — can then become building blocks that let you enhance and extend Visual Basic. Procedures are useful for condensing repeated or shared tasks, such as frequently used calculations, text and control manipulation, and database operations.
There are two major benefits of programming with procedures:
Ø Procedures allow you to break your programs into discrete logical units, each of which you can debug more easily than an entire program without procedures.
Ø Procedures used in one program can act as building blocks for other programs, usually with little or no modification. There are several types of procedures used in Visual Basic.
A procedure can be either a Sub, Function, or Property procedure.
No comments:
Post a Comment