JumpToLine command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:


{|
{|
|width="50%"| '''Action:'''
|width="125px"| '''Action:'''
|width="50%"|
|width="775px"|
<span class="f_Para">Transfers control to a specified request statement in the </span><var>Source Code</var><span class="f_ListBul2"> </span><span class="f_Para">or </span><var>Daemon</var><span class="f_Para"> </span><span class="f_ListBul2">page</span><span class="f_Para">, then executes that statement. </span>
<span class="f_Para">Transfers control to a specified request statement in the </span><var>Source Code</var><span class="f_ListBul2"> </span><span class="f_Para">or </span><var>Daemon</var><span class="f_Para"> </span><span class="f_ListBul2">page</span><span class="f_Para">, then executes that statement. </span>



Latest revision as of 21:24, 30 January 2023

Action:

Transfers control to a specified request statement in the Source Code or Daemon page, then executes that statement.

The command's required argument is a number or keyword that indicates the target statement:

jumpToLine [current | number

where:

  • The keyword current specifies a jump to and then execution of the current statement.
  • number may be in one of three forms: nnn | -nnn | +nnn
    • nnn specifies an "absolute jump" to the nnn statement line number in the Source Code or Daemon page display, then an execution of that statement.
    • -nnn or +nnn specifies a "relative jump," jumping the indicated number of statements backward or forward relative to the current (yellow highlighted) line, followed by the execution of that statement.
For example, specifying -1 reruns the statement prior to the current line. +1 skips the current executable statement and executes the one following it.

If you use the command in a macro:

  1. When you specify the jumpToLine command in the macro, explicitly supply its argument (the current keyword or a number to indicate the target line) or specify an argument variable.
  2. Observe the jump validation rules.

If you use the command in a mapped button or hot key:

  1. Do not specify an argument for the jumpToLine command in the mapping; you specify the argument (the current keyword or a number to indicate the target line) in the Entity name input box.
  2. Observe the jump validation rules.

For information about invoking a jump by right clicking a line in the Source Code or Daemon tab, see Altering the flow of execution.

Client menu: --
Introduced: Build 27