◄Programs and Modules► ◄Examples► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Procedures There are three types of BASIC procedures: ■ FUNCTION Procedures - Used in expressions to directly return one value - Can change value of all variables in argument list - May be used outside module in which defined - Defined outside module-level code - Can be used recursively ■ SUB Procedures - Can be invoked with CALL statement - Can change value of all variables in argument list - May be used outside module in which defined - Defined outside module-level code - Can be used recursively ■ DEF FN Procedures - Used in expression to directly return one value - Cannot change value of variables in argument list - Cannot be used recursively - Can only be used in module in which defined - Must be defined in module-level code before they are used See Also ◄Passing Arguments► ◄Recursion►