Previous Next        Current Page: NeXtMidas Training / Working with Files / Lab 3 / Solution
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
   - File Basics   
   + The AUX List   
   + Basic File Commands   
   + Lab 1   
   + File Names   
   + File Types   
   + Lab 2   
   + Listing Files   
   - Lab 3   
      - Instructions   
      - Solution   
   + Plotting Files   
   + Lab 4   
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   


  • Lab 3 (solution):
    • Here is what you should have done:
      1. Use LIST2 to display the file airports.csv.
        nM> list2 airports.csv
      2. Use LIST2 to display the file apenny.prm.
        nM> list2 apenny.prm
      3. Use LIST2 and a result table template to color the text in each of the columns in airports.csv RED,GREEN,BLUE and YELLOW, respectively.
      4. nM> list2 airports.csv {COL_1={FGCOLOR=RED},COL_2={FGCOLOR=GREEN},COL_3={FGCOLOR=BLUE},COL_4={FGCOLOR=YELLOW}}
      5. Use the TABLE command to save the table you used above as a table file, then use LIST2 to display airports.csv using the table file as a template.
        nM> res tbl {COL_1={FGCOLOR=RED},COL_2={FGCOLOR=GREEN},COL_3={FGCOLOR=BLUE},COL_4={FGCOLOR=YELLOW}}
        nM> table tbl SAVE template.tbl
        nM> list2 airports.csv template.tbl

back