Chapter 6 Summary - Chapter 6 Summary Chapter 6: Procedures...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 6 Summary Chapter 6: Procedures and Functions 6.1 Procedures Procedure is a collection of stmts that performs a task Function is a collection of stmts that performs a task, then returns a value to the part of the program that executed it. In general, a procedure is not triggered by an event, but is called from other procedures. These procedures are broken down into modules, that compartmentalize the program and make it more manageable. The format is: [AccessSpecifier] sub procedureName ([parameterList]) [stmts] End Sub Items in parenthesis are optional. The access specifier would typically be public or private. Public would allow any procedure in the program to access it. The keyword sub is followed by the name of the procedure. The parameter list is a variable that receives a value that is passed to it. When a procedure terminates, the values stored in the variables are terminated. A variable that is not destroyed is a static local variable. A declaration is as follows:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/05/2011 for the course BUS 92 taught by Professor Staff during the Spring '11 term at San Jose State University .

Page1 / 3

Chapter 6 Summary - Chapter 6 Summary Chapter 6: Procedures...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online