home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / biz / db-2.3.lha / db / Examples / ARexxDemos / calc.db next >
Text File  |  1994-09-03  |  187b  |  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.