Watching program data items

From m204wiki
Revision as of 20:08, 16 May 2022 by Ekern (talk | contribs) (Created page with "__TOC__ <span class="f_Para">The </span><span class="f_GUIlabel">Watch Window</span><span class="f_Para"> box can display the current value of one or more program code data it...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Watch Window box can display the current value of one or more program code data items. It is located in the lower right corner of the main window, unless it is opened in a separate window external to the Client.

The Watch Window is updated as the program runs, each time execution is paused by the Debugger. If the value of a watched item is changed by the last statement execution, it is highlighted:

watchVal1s

The following types of items can be “watched”:

  • %variable scalar values (for example: %x, %y)
  • Elements of %variable arrays (for example: %names(%I), %names(34))
  • Image items (including image array elements) (for example: %input:name)
  • Global variables
  • Database fields
  • Model 204 parameters
  • Elements of $lists and Stringlist and Arraylist objects
  • Counts of items in a $list or Stringlist or Arraylist
  • Certain $function calls: $STATUS and $STATUSD, $CURREC, $FIELDGROUPID, and $FIELDGROUPOCCURRENCE
  • Structure elements (for example: %address:city)
  • Object variables (for example: %xmlInput:serial)

These subsections follow: