beautypg.com

Dreamweaver.findnext(), Dreamweaver.findall() – Adobe Dreamweaver API Reference CS5 User Manual

Page 450

background image

445

DREAMWEAVER API REFERENCE

Code

Last updated 8/27/2013

dreamweaver.findNext()

Availability
Dreamweaver 3; modified in Dreamweaver MX 2004.

Description
Finds the next instance of the search string that was specified previously by

dreamweaver.setUpFind()

” on page 448,

by “

dreamweaver.setUpComplexFind()

” on page 446, or by the user in the Find dialog box, and selects the instance in

the document.

Arguments
{bUseLastSetupSearch}, {document}, {clearSearchResults}

The bUseLastSetupSearch argument, which is optional, is a Boolean value. If bUseLastSetupSearch is the value

true

,

which is the default if no argument is given, the function does a find-next operation using the parameters specified
by a previous call to either the

dreamweaver.setupComplexFind()

function or the

dreamweaver.setupComplexFindReplace()

function. If you set bUseLastSetupSearch to the value

false,

the

function ignores the previously set up search and performs a search for the next instance of the text that is currently
selected in the document.

The document argument, which is optional, represents the document to be searched.

The clearSearchResults argument, which is optional, indicates whether the Find results panel should be cleared
before a search operation is performed.

Returns
Nothing.

Enabler
See “

dreamweaver.canFindNext()

” on page 505.

dreamweaver.findAll()

Availability
Dreamweaver 3.

Description
Finds all the instances of the search string that was specified previously by

dreamweaver.setUpFind()

, by

dreamweaver.setUpComplexFind()

, or by the user in the Find dialog box, and selects all the instances in the

document.

Arguments
The arguments are same as the

dreamweaver.findNext()

function. See

dreamweaver.findNext()

” on page 445.

Returns
Nothing.