Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 2 / Advanced Results Parameters / Tables / Creating
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   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Creating a Table
    • Tables can be created using the SET or RES or TABLE command.
      nM> set table1 {ONE=1,TWO=2,THREE=3}
      nM> res table2 {FOUR=4,FIVE=5,SIX=6}
    • An empty table can be created that will be filled in later.
      nM> set table3 {}
    • A table must be created before it can be modified. (This is important later.)
Don't Make This Mistake:
No results translation is done on a new table unless a results name was created. Therefore:
    res t:table {FOO=ten}
will set FOO to the string "ten" even if there was a result named TEN. If you want to force results translation, use a caret:
    res t:table {FOO=^ten}