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

Set Next Statement can only apply to executable lines within current procedure.

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

You can choose the Set Next Statement command to indicate where a suspended program should begin when execution is continued. This error has the following causes and solutions:

  • When you chose the command, the cursor was on a line that didn't contain an executable statement. Place the cursor on a line with an executable statement and try again. Declarations, line labels, and comments aren't executable, so lines with only declarations, labels, and comments can't be the targets of the Set Next Statement command.

  • When you chose the command, the cursor was on a line outside the currently executing procedure.

    Place the cursor on a line within the currently executing procedure.

© 2018 Microsoft