home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / WordProcessors / PAGESTREAM3,0-1.DMS / in.adf / Macros.LHA / PLmath.rexx < prev    next >
Encoding:
OS/2 REXX Batch file  |  1993-03-25  |  317 b   |  19 lines

  1. /*
  2.  * math.rexx
  3.  *
  4.  * This will compute the equationthat is highlighted inside
  5.  * PageLiner and replace it with the result.
  6.  *
  7.  * written 3/24/93 by Gary Knight
  8.  *
  9.  */
  10.  
  11. address PAGELINER
  12. options results
  13. 'getarea'
  14. IF rc=0 THEN DO
  15.         equation=RESULT
  16.         interpret "answer = "equation
  17.         'text' answer
  18. END
  19.