home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / programme / GoldED / arexx / empty.ged < prev    next >
Encoding:
Text File  |  1998-10-06  |  806 b   |  36 lines

  1. /* $VER: 1.0, ©1996 Dietmar Eilert. Empty GoldED macro */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes     */
  4.  
  5. if (LEFT(ADDRESS(), 6) ~= "GOLDED") then    /* not started by GoldEd ? */
  6.     address 'GOLDED.1'
  7.  
  8. 'LOCK CURRENT RELEASE=4'                    /* lock GUI, gain access   */
  9.  
  10. if (RC ~= 0) then
  11.     exit
  12.  
  13. OPTIONS FAILAT 6                            /* ignore warnings         */
  14.  
  15. SIGNAL ON SYNTAX                            /* ensure clean exit       */
  16.  
  17. /* ------------------------ INSERT YOUR CODE HERE: ------------------- */
  18.  
  19.  
  20. 'REQUEST BODY="Hi, I''m an empty macro"'
  21.  
  22.  
  23. /* ---------------------------- END OF YOUR CODE --------------------- */
  24.  
  25. 'UNLOCK' /* VERY important: unlock GUI */
  26.  
  27. exit
  28.  
  29. SYNTAX:
  30.  
  31. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
  32.  
  33. 'UNLOCK'
  34.  
  35. exit
  36.