Previous Next        Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Loops and Control Structures / GOTO and LABEL
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
   + Macro Basics   
   - Loops and Control Structures   
      - IF   
         - Tests   
         - IF (Block)   
         - IF (One-Line)   
         - IF (Quick Check)   
      - Loops   
         - DO   
         - LOOP   
         - WHILE   
         - FOREACH   
         - BREAK and CONTINUE   
         - FORALL   
         - Summary   
      - GOTO and LABEL   
      - Lab 1 - Macro Control   
         - Instructions   
         - Solution   
      - Lab 2* - Macro Control   
         - Instructions   
         - Solution   
   + Procedures and Subroutines   
   + Pipes in a Macro   
   + Messages in a Macro   
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   


  • The GOTO and LABEL Statements:
    • The GOTO and LABEL statements can be used to jump around to different parts of a macro.
    • These are rarely used in NeXtMidas.
      • The rich set of loops and conditionals available in NeXtMidas makes them unnecessary.
      • They are intended to make it easier to port X-Midas macros to NeXtMidas and may be deprecated in the future.
X-Midas Users Take Note:
The rich set of loops and conditionals makes the use of GOTO and LABEL unnecessary in NeXtMidas. If you ever find yourself typing GOTO in a NeXtMidas macro this is a tip that there is a better (and often easier) way to do what you are doing.

back