Reply to: Search and ReplaceJune 11, 2013 at 12:06 am
Assuming the following concrete example for XMAX 22.214.171.124, where a document contains the following text (doesn't matter where in this example):
foo test footest testfoo fotesto
The following will both replace all occurences of “test” with “blah”:
Selection.Find.Execute(“test”, “blah”, “”, true, true, false, true, false, 3, false);
Selection.Find.Execute(“test”, “blah”, “”, true, false, false, true, false, 3, false);
So, I think the answer to your question is yes. If that isn't what you are testing then please provide an example.
However, a new bug first noticed with 126.96.36.199 breaks the intFindReplaceAction argument. If you upgrade to the current release and wish to use that argument you will need to work around it with code similar to the following:
//XMetaL Script Language JScript:
var rng = ActiveDocument.Range;
var found = true;
found = rng.Find.Execute(“text to find”, “”, “”, false, false, false, true, false, 0, false);
The 4 and 5th arguments work here, while the intFindReplaceAction argument is broken.