Statements>Goto - Label
Introduction Installation Beginning Admin Quick Ref FTP Server SMTP Server Database Security
Statements Objects String Parsing Events Queues Samples Special names Error Handling Accessories   Back
Caravan Business Server>Help>Statements>Goto - Label
Syntax
<CARAVAN>
    ......
      goto othercode
      ......
label othercode
  some code here....
  .....
</CARAVAN>
Text You can jump from any point in your program to any other point with in that source code file.
Sample

<HTML>
<BODY>
<CARAVAN>
      if cmp(locktarget)="1"
                  goto Track
      endif

                   loop a (cmp(Computer(00)))
                         cmp(.node)="Computer"
                         jtemp(compname(01))+=cmp(name)
                         jtemp(compname(01))+=","
                         jtemp(ip(01))+=cmp(ip)
                         jtemp(ip(01))+=","
                         jtemp(port(01))+=cmp(port)
                         jtemp(port(01))+=","
                        cmp(.node)=".next"
                  repeat a 500

label Track
            cmp(.node)=".next"
</CARAVAN>
</BODY>
</HTML>
Quick Reference
Home       Back