qb45advr.hlp (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.
.mxp
:nModules and Procedures
:l24
  ◄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.