Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 2 / Advanced Results Parameters / Tables / Advanced
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
   - Advanced Results Parameters   
      - Tables   
         - Creating   
         - Accessing   
         - Modifying   
         - Advanced   
      - In-Line Functions   
      - Objects   
         - The Invoke and New Commands   
      - Using Carets   
      - Using Flag Strings   
      - Automatic Type Conversion   
      - Type Casting   
   + Lab 3   
   + Threads in NeXtMidas   
   + Lab 4   
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   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Tables
    • Tables can hold nested tables. GET and RESULTS have a useful switch for displaying nested tables, /ALL.
      nM> set people {TOM={AGE=37,WEIGHT=189},SUE={AGE=32,WEIGHT=135}}
      nM> get people
        T: PEOPLE          = Table of 2 entries
        T:  TOM            = Table of 2 entries
        T:  SUE            = Table of 2 entries
      nM> get/all people
        T: PEOPLE          = Table of 2 entries
        T:  TOM            = Table of 2 entries
        L:   AGE           = 37
        L:   WEIGHT        = 189
        T:  SUE            = Table of 2 entries
        L:   AGE           = 32
        L:   WEIGHT        = 135
      nM> get people.tom
        T: PEOPLE.TOM      = Table of 2 entries
        L:  AGE            = 37
        L:  WEIGHT         = 189
      nM> get people.tom.age
        L: PEOPLE.TOM.AGE  = 37
      Click image for larger view.
    • Tables can be merged by putting both tables together on a single line.
      nM> set merged {A=1,B=2,C=3}{D=4,E=5,A=999}
      When tables are merged, any "duplicate tags" are assigned the value that appears last. In the above example, A would be 999.
    • There is also a TABLE command that provides many additional features.

back