Chapter 3- Standard Subroutines Flashcards
Argument/Actual parameter
Data transferred to a subroutine when a subroutine is called
Function
Subroutine that consists of a set of instructions, performs a specific task and normally delivers a result
Method
Procedure or function that defines the behaviour of and object (such as a Delphi component)
Parameter
When a subroutine is declared, the data values a subroutine can receive or return are called the parameters
Procedure
Subroutine that consists of a set of instructions, that executes a specific task/tasks. Delivers no results, or one or more than one result through the application of reference parameters
Reference parameter/variable parameter
Parameter where the address of the value used in the argument of the procedure is passed to the procedure. Procedure works with the value of the argument itself
Standard subroutine
Programming code that is written by the developers of Delphi. This code is then supplied to other programmers for them to use in their own programs
Subroutine
Program statements grouped together to perform specific tasks and to possibly deliver certain results
Unit
Module of code that can contain: •code associated with a form •standard subroutines •programmer-developed subroutines •programmer developed class •programmer developed data module
Value parameter
Parameter where the value used in the argument of the procedure is copied to the procedure, so the procedure works with a local copy. Changes to the value will not affect the argument