Runtime Error Behavior: Using The Development Environment
Runtime Error Behavior: Using The Development Environment
Runtime errors are errors that occur when the user actually runs an application. Runtime errors
occur for various reasons; often, the reason has to do with precise conditions that exist at runtime.
For example, the following statement compiles successfully:
The error message identifies the name of the program file and the line number at which the error
occurred. In the example above, the name of the program is map_it, and the line number containing
the error is 16. This line number identifies which part of your program caused the runtime error.
Once you know the line number, you can return to the MapBasic development environment and use
the Go To Line command (on the Search menu) to locate the statement that caused the problem.
1. Within the MapBasic development environment, edit your program, and place a Stop statement
just before the part of your program that seems to be failing.
78 MapBasic 11.5