// jiglrepl.s - see how many l
/***
Assuming you might want to use the number of the number of replacements
itself in the macro, I used this method is a couple of my macros. Using
Replace() in a macro instead of lReplace(), you get the number of
changes placed on the statusline and read it into a variable to be used
by the macro.
For it to work properly, of course, you have to make sure you read the
statusline immediately after the Replace() and before the statusline is
updated.
***/
replacements
<ctrlshift x> execmacro("jiglrepl")
proc main()
string s[20]=""
integer n=0
replace("the","eht","ing")
getstrxy(1,query(statuslinerow),s,10)
n=val(s)
warn("Changes: "+str(n))
end
-----Original Message-----
From: Fred H Olson