home *** CD-ROM | disk | FTP | other *** search
- /* RepReq.xdme */
-
- if ~show("L","rexxreqtools.library") then
- if ~addlib("rexxreqtools.library", 0, -30) then exit
-
- options results
- address 'XDME.1'
- 'rxresult ($findstr )'
- F = strip(result,"T")
- 'rxresult ($repstr )'
- R = strip(result,"T")
-
- R = rtgetstring(R,"Find String =" F '0A'x || "Enter Replace String","XDMD Replace Requester","_Once|_All|_Block|_Cancel")
- if rtresult = 0 then exit
- R = '(' || R || ')'
- xcom = 'settvar R' R 'repstr' R 'findstr' F
- xcom
- if rtresult = 1 then "replace"
- else if rtresult = 2 then "replace-all"
- else "replace-block"
-