bas7qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Procedures
  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