Table of contents
TOC
Collapse the table of content
Expand the table of content

Set Next Statement Command (Debug Menu)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Sets the execution point to the line of code you choose. You can set a different line of code to execute after the currently selected statement by selecting the line of code you want to execute and choosing the SetNextStatement command or by dragging the Current Execution Line margin indicator to the line of code you want to execute.

Using SetNextStatement, you can choose a line of code located before or after the currently selected statement. When you run the code, any intervening code isn't executed. Use this command when you want to rerun a statement within the current procedure or to skip over statements you don't want to execute. You can't use SetNextStatement for statements in different procedures.

Toolbar shortcut: Toolbar button. Keyboard shortcut: CTRL+F9.

© 2018 Microsoft