next up previous contents
Next: Conditions Up: Elements of a program Previous: Comments   Contents

Labels

Labels mark a point in the program so that execution may be directed there with a goto command. An association is made between a label and the next command encountered after the point where the label is defined. Each label can be any string of alphanumeric or `_' characters (up to length 40). Any label which is referenced by a goto command must, of course, be defined, otherwise a fatal error results. Some examples follow:-

  1.  
       goto big_event
       ..
    big_event:
       call ftt
    
  2.    goto 1
       ..
       goto 2
       ..
    1: call ftt
    2: call out(1)
    



sno Guest Acct 2009-09-09