home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Database / DataBase2.2.LHA / db2.2 / Examples / ARexxDemos / calc.db next >
Encoding:
Text File  |  1994-09-03  |  187 b   |  8 lines

  1. /* calc expression in given gadget
  2.    Written by: Richard Ludwig */
  3. options results;GETFIELD
  4. if verify(result, '0123456789+-*/().','m') then do
  5.     interpret 'ret=' result
  6.     PUTFIELD ret
  7. end
  8.