Must Start Program to Use Set Next Statement from Debug Menu (62812)



The information in this article applies to:

  • Microsoft QuickBASIC 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBASIC 4.5
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b

This article was previously published under Q62812

SUMMARY

When debugging a Basic program in the QB.EXE or QBX.EXE environment, the Set Next Statement command from the Debug menu cannot be used unless the program is first started.

MORE INFORMATION

To use the Set Next Statement option, the program must be started in one of the following ways:

  1. Restart the program by choosing Restart from the Run menu by pressing ALT, R, R.
  2. Use the F8 key to step to the first line of the program.
  3. Start the program with SHIFT+F5 (or choose Start from the Run menu). Then stop the program with a breakpoint or by pressing CTRL+BREAK.
After this, you should be able to use the Set Next Statement option. To use this debugging option, move the cursor with the arrow keys or mouse to the line of code where you want execution to begin. Then choose Set Next Statement from the Debug menu. That line will be highlighted, showing that it will be the next line to execute when you continue running the program.

Modification Type:MinorLast Reviewed:1/9/2003
Keywords:KB62812