Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 2 / Advanced Results Parameters / Tables
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 are one of the most useful types of results available to users of the NeXtMidas shell and macro language. A table is a collection of values each with a unique tag (or name).
    • When defined on the command line or in a macro, a table is specified in the following format:
      nM> set mytable {TAG1=VAL1,TAG2=VAL2,...,TAGn=VALn}
      A table is defined within a pair of braces ({...}) and each element of the table is specified by a TAG=VALUE syntax with a comma (,) separating subsequent elements.
    • All tags in a table must be one or more characters in length and may contain only numbers, upper-case letters and the underscore.
      • This differs from valid results names in that the tag can start with a number.
      • Older versions of NeXtMidas allowed names to contain a dash (-), this behavior is deprecated since it makes it hard to tell a table entry from a subtraction.
X-Midas Users Take Note:
Stable X-Midas releases before 4.6.0 do not support tables. Support for tables is added in X-Midas 4.6.0 and is called XMVALUE. X-Midas tables are syntactically very similar to NeXtMidas tables. Check the documentation for differences.

back