home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: ISpellSuggest.rexx 1.0 (13.06.99) by Markus K.Maier <mkm@gmx.de>
- */
- options results
-
- parse arg what
-
- address 'IRexxSpell' check what
- res = translate(left(result,1,1),"**","+-")
-
- Open('f','T:Matches','W')
-
- if res = '*' then
- WriteLn('f', "Word is correct")
- else
- if res = '&' then do
- parse var result '&' what ': ' word ', ' rest
-
- do while rest ~= ''
- WriteLn('f', word)
- parse var rest word ', ' rest
- end
- WriteLn('f', word)
- end
- else
- WriteLn('f', "No suggestions")
-
- Close('f')
- exit
-