Previous Next         Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Lab 2 / Instructions
Start Here   
Background   
Common Midas Concepts   
Getting Started   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
   + Macro Basics   
   + Lab 1   
   - Lab 2   
      - Instructions   
      - Solution   
   + Loops and Control Structures   
   + Lab 3   
   + Lab 4*   
   + Procedures and Subroutines   
   + Lab 5   
   + Lab 6*   
   + Pipes in a Macro   
   + Lab 7   
   + Lab 8   
   + Messages in a Macro   
   + Lab 9   
   + Lab 10   
Macros - Part 2 (Graphics)   
Primitives   
Installing NeXtMidas   
Applets & WebStart   
Mapping (NeXtEarth)   
Remote Midas InterFace (RMIF)   
Using NetBeans   
X-Midas Interoperability   
Remoting an X-Midas App.   


  • Lab 2:
    • For this lab you will need to create a new option tree called TRAIN and add the macro you created in Lab 1 to that option tree.
      • If you have forgotten how to create an option tree, please refer back to the module on Option Trees.
      • You can just copy the file you created in Lab 1 to the mcr directory and then use UPDATE to add it to the command dictionary (you do not need to provide default values for the macro).
    • When you are done you should be able to do this:
      nM> mcrlab1 FEET=5 INCHES=6 NAME="Lee"
      INFO: Lee is 167cm tall [MCRLAB1]