home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDGE1_704.DMS / in.adf / Edge_Rexx.lha / LoadDic.edge < prev    next >
Encoding:
Text File  |  1993-10-27  |  610 b   |  39 lines

  1.  
  2. /*
  3. ** $VER: LoadDic.edge 1.1 (Sunday 08-Aug-93 02:44:41)
  4. **
  5. ** Load the dictionary file selected by the user via the FileRequester
  6. **
  7. ** Written by Thomas liljetoft
  8. */
  9.  
  10.  
  11. options results
  12.  
  13. /* get the users error-report level */
  14.  
  15. getenvvar _ge_errlevel
  16. errlevel = result
  17.  
  18. /* ask for the dictionary file */
  19.  
  20. 'requestfile' title '"Load dictionary..."' path '"edgeprg:"' file '""' getdir
  21. if RC == 0 then do
  22.  
  23.     /* ok, loadit. */
  24.  
  25.     'loaddictionary' '"'result'"' force
  26.  
  27.     end
  28.  
  29. if RC >= errlevel then do
  30.  
  31.     /* something went wrong enought to be reported so report */
  32.  
  33.     'fault'
  34.     'requestnotify' '"'result'"'
  35.     end
  36.  
  37. exit(0)
  38.  
  39.