The Find interface supports one method, Execute.
Execute([strFind], [strReplace], [strFindIn], [boolMatchCase=false], [boolMatchWholeWords=false], [boolMatchPatterns=false], [boolForward=true], [boolWrap=true], [intFindReplaceAction=0], [boolSetFindDialogOptions=false]) | |
Returns | Boolean |
Description |
Indicates whether the search was successful, and moves the selection to the found text.
|
Usage | |
JScript |
Selection_object.Find.Execute(["strFind"], ["strReplace"], ["strConstraintString"], [boolMatchCase=false], [boolMatchWholeWords=false], [boolMatchPatterns=false], [boolForward=true], [boolWrap=true], [intFindReplaceAction=1], [boolSetFindDialogOptions=false]); |
VBScript |
Selection_object.Find.Execute(["strFind"], ["strReplace"], ["strConstraintString"], [boolMatchCase=false], [boolMatchWholeWords=false], [boolMatchPatterns=false], [boolForward=true], [boolWrap=true], [intFindReplaceAction=1], [boolSetFindDialogOptions=false]) |
Example |
// SoftQuad Script Language JSCRIPT: // find the next occurrence of "hello" in a "PARA" element Selection.Find.Execute("hello","","PARA"); |
Copyright © SoftQuad Software Inc. 1999