SetNextStatement Method
Home Page (Objects) | Overview | FAQ | Reference
Applies to: Debugger object
Specifies the next statement to execute in a program that you are debugging.
Syntax
object**.SetNextStatement** [expression]
Parameters
object
An expression that evaluates to a Debugger object.
expression
A Long that indicates where to start execution of the program. The default is the insertion point in the active document.
Remarks
The SetNextStatement method is useful for starting execution somewhere after a breakpoint. If the debugger is not able to complete the operation directed by the SetNextStatement method, it throws the dsCantSetIPToThisLine exception.
Example
The following example starts execution at the insertion point in the active document:
Debugger.SetNextStatement