Creating Procedures

When you create a procedure, you must decide how widely accessible you want the procedure to be, what you want to name the procedure, what task you want the procedure to perform, what sort of information the procedure will need to perform this task, what types of data you want the procedure to accept and return, and whether you want the procedure to affect data in other parts of the program. The following sections describe how Visual Basic allows you to specify this information for each procedure you write.