Microsoft KB Archive/43792

From BetaArchive Wiki
Knowledge Base

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


To enable a Macintosh QuickBASIC compiled application to return the line number where a run-time error occurs, you must choose the compiler option "Process Runtime Events." This option is chosen from the Run menu under "Options...". 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 <OK> 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 "Microsoft QuickBASIC for Apple Macintosh: Language Reference" 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 "Create Program List File" compiler option. This creates a "lst" listing file with physical line numbers.

Additional query words: MQuickB

Keywords: KB43792