Resolving "Subprogram Not Defined" Error with MONEY.BAS (87772)



The information in this article applies to:

  • Microsoft QuickBASIC 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBASIC 4.5
  • Microsoft Basic Professional Development System for MS-DOS 7.0
  • Microsoft Basic Professional Development System for MS-DOS 7.1

This article was previously published under Q87772

SUMMARY

If you try to load the MONEY.BAS program designed for Microsoft QuickBasic for MS-DOS that is supplied with MS-DOS version 5.0, the error message
Subprogram Not Defined
may be displayed. The Call Absolute procedure is built into the QBasic.EXE environment of MS-DOS 5.0. However, the Call Absolute procedure is not built into the QB.EXE environment of Microsoft QuickBasic for MS-DOS or in the QBX.EXE environment of Basic Professional Development System (PDS) for MS-DOS.

MORE INFORMATION

Because the Call Absolute routine is separate from the Microsoft QuickBasic for MS-DOS and Basic PDS for MS-DOS environments, you need to load a quick library that contains the Call Absolute routine before running the MONEY.BAS program.

To run the MONEY.BAS program in either of these environments, do the following:

QuickBasic for MS-DOS

  1. Start QB.EXE with the Quick library QB.QLB. An example of loading the Quick library in Microsoft QuickBasic for MS-DOS is as follows:

    c:\dos> qb /l c:\qb45\qb.qlb

  2. Load the MONEY.BAS source program from the C:\DOS directory and press F5 to run it.

Basic PDS for MS-DOS

  1. Start QBX.EXE with the Quick library QBX.QLB as follows:

    c:\dos> qbx /l c:\bc71\lib\qbx.qlb

  2. Load the MONEY.BAS source program from the C:\DOS directory and press F5 to run it.
You should now be able to run the program without any problems.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:KB87772