Microsoft KB Archive/87772

= Resolving &quot;Subprogram Not Defined&quot; Error with MONEY.BAS =

Article ID: 87772

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.0
 * Microsoft QuickBASIC 4.0b
 * Microsoft QuickBasic 4.5 for MS-DOS
 * Microsoft BASIC Professional Development System 7.0
 * Microsoft BASIC Professional Development System 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
 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

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

Basic PDS for MS-DOS
 Start QBX.EXE with the Quick library QBX.QLB as follows:

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

 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.

Additional query words: QuickBas 4.00 4.00b 4.50 7.00 7.10

Keywords: KB87772

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.