home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / subroutine_01.tg < prev    next >
Encoding:
Text File  |  2001-10-20  |  618 b   |  29 lines

  1. ## subroutine_01.tg
  2. # This script demonstrates the subroutine.
  3. # No special return clauses (continue, break, stop) are used, so execution continues.
  4. # See Also: subroutine_02.tg
  5.  
  6. {
  7.     -name subroutine_01
  8.     -start 
  9.     -action -print here we are in the main job
  10.     -action -call my_procedure_A
  11.     -action -print back here in the main job
  12.     -action -inc 0 0 0 3
  13. }
  14.  
  15. {
  16.     -name my_procedure_A
  17.     -action -print Now in my_procedure_A
  18.     -action -call my_procedure_B
  19.     -action -print back here in my_procedure_A
  20.     -action -return
  21. }
  22.  
  23.  
  24. {
  25.     -name my_procedure_B
  26.     -action -print Now in my_procedure_B
  27.     -action -return
  28. }
  29.