Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 1 / Results Parameters / RESULTS Command
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
   + NeXtMidas Shell   
   + Running NeXtMidas Commands   
   - Results Parameters   
      - What are they?   
      - SET Command   
      - GET Command   
      - RESULTS Command   
      - REMOVE Command   
   + Lab 1   
   + Getting Help   
   + Lab 2   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • The RESULTS Command:
    • The RESULTS command (commonly shortened to RES) can be used to create and/or set the value of a result or get the value of a result.
    • The RESULTS command combines the functionality of both SET and GET depending on the number of parameters given.
      • It takes in two parameters LABEL= and VALUE=. The label is the name of the result and value is the new value for the result.
      • If only LABEL= and VALUE= are specified it functions like SET.
      • If only LABEL= is specified it functions like GET.
      • If neither LABEL= nor VALUE= are specified it lists all available results.
    • Example:
      nM> res x 10
      nM> res x
        L: X               = 10
  • newNew feature (Since NeXtMidas 2.9.0). Escape sequences can be inserted into RESULTS Strings to allow for tabs, newlines, and a host of other special characters.
    • Generally, all escape sequences recognized by Java (including Unicode) are allowed.
    • Like Java, the escape sequences start with a backslash ("\") followed by a character or characters.
    • Unicode escape sequences start with "\u" followed by four hex digits.
    •     nM> res s:tabs "A\tB\tC"
          nM> res tabs
          5S: TABS            = A        B       C
          nM> res s:heart "\u2665"
          nM> res heart
          1S: HEART           = ♥