[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 Control Flow
 ----------------------------------------------------------------------------

       The Template  Language supports the standard  language constructs
       used  for controlling  program  flow. Specifically,  the Template
       Language supports:

              IF statements
              FOR loops
              DO WHILE and WHILE loops
              DO CASE statements
              SWITCH statements

       Where possible,  the syntax  and functionality  of these  control
       statements  follows  the syntax  and  functionality of  the Dbase
       family of languages.  The SWITCH  statement is similar  to the  C
       switch statement

       In  several   instances,  the  Template   Language  defines  some
       constructs that don't have analogous entities in the Dbase family
       of languages or any of the  other major programming languages. In
       most  cases,  these  new  language  constructs deal  with  Object
       definitions (Boxes, Fields, Index, etc.).

       One example of  this is the  FOR ALL RELATIONS...NEXT loop  which
       causes  the  Template Language  to loop  across all  the Relation
       Objects defined in the UI editor.

       All control constructs  may be terminated with the END keyword as
       opposed to the full terminator (a SWITCH statement could be close
       with  END as opposed to ENDSW), however, this practice makes it a
       little difficult to find the bottom of the construct.



 

See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson