◄Modules and Procedures► ◄Contents► ◄Index► ────────────────────────────────────────────────────────────────────────────── Modules and Procedures QuickBASIC programs consist of the following: ◄modules► - source files that can be separately compiled ◄FUNCTION procedures► - used in expressions; returns a single value directly ◄DEF FN functions► - can only be defined in module-level code ◄SUB procedures► - not used in expressions; returns multiple values Finally, two advanced techniques are available in QuickBASIC. ◄Argument-passing conventions► - Arguments may be passed to a procedure by reference or by value. ◄Recursion► - SUB or FUNCTION procedures can be recursive.