• Listing:
    • While a LIST2 is up, it is possible to add/remove/update rows from the list.
      • LIST2 uses tables to add/remove/update the data for a row.
      • A special feature of the files implementing ListFile (which LIST2 uses) is that their add/set/update row methods are designed to work with "mis-match" tables following these rules:
        • Where a key in the table matches a column in the file, LIST2 will use that value (in cases where the file specifies an internal format the value will be converted to that format). (Automatic type conversion!)
        • Any keys not matching a column name are ignored. (Extra values are ignored!)
        • Any columns for which there is not a matching key get default values. (Missing values get the default!)
    • While an instance of LIST2 is up and running, its template can be altered in one of two ways:
      1. SET - Setting a new template discards the old template and uses a new one.
      2. UPDATE - Updating a template modifies the template currently in use by adding/changing some of the entries.
        • This is very useful since it allows for simple modifications to an existing template.
          invoke ,, reg.list2.updateTemplate({ABSC={FGCOLOR="RED"}})
          In the above example the color of the ABSC column is changed to red, but nothing else is altered.
    • See the API for nxm.sys.libg.MJList for more details.
    • See the %test_list2 macro in the test area of SYS for examples.