Microsoft KB Archive/62812

= Must Start Program to Use Set Next Statement from Debug Menu =

Article ID: 62812

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 Compiler 6.0
 * Microsoft BASIC Compiler 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.

Additional query words: QuickBas

Keywords: KB62812

-

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

© Microsoft Corporation. All rights reserved.