Microsoft KB Archive/43792

= Macintosh QuickBASIC Compiled Program Can Give Error Line # =

Article ID: 43792

Article Last Modified on 11/21/2006



This article was previously published under Q43792



SUMMARY
To enable a Macintosh QuickBASIC compiled application to return the line number where a run-time error occurs, you must choose the compiler option &quot;Process Runtime Events.&quot; This option is chosen from the Run menu under &quot;Options...&quot;. With this compiler option, applications display error messages in the following form:


 * Error MM at NNNNN

This message is displayed in a dialog box with a STOP sign indicating that the application was terminated. An  button prompts you to return to the application from which the program was launched.

MM refers to the error number. The errors are listed by number in the &quot;Microsoft QuickBASIC for Apple Macintosh: Language Reference&quot; manual, Pages 557-559.

NNNNN in the message refers to the physical line number in the BASIC source file where the error occurred. (This number is not a memory address.)

To see physical line numbers most easily, you must select the &quot;Create Program List File&quot; compiler option. This creates a &quot;lst&quot; listing file with physical line numbers.

Additional query words: MQuickB

Keywords: KB43792

-

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

© Microsoft Corporation. All rights reserved.