More Methods For PathFinder


Most of us are aware of the Locate method available for PathFinder object, but there are more useful and unfamiliar methods associated with PathFinder Object. We have listed those methods below,

INSERT

Description:

This method is used to add a new folder path to the Folders list (Tools-> Options-> Folders).

Syntax:

Example:

The above example will add new folder path to the Folders list.

FIND

Description:

This method returns the Index of the specified path.

Syntax:

Example:

It returns the Index of the specified path. If the path is not found, it will return -1.

MOVEITEM

Description:

This method can be used to swap the Index of two folder paths.

Syntax:

Example:

REMOVE

Description:

This method removes the specified folder path from the folders list.

Syntax:

Example:

REMOVEALL

Description:

This method removes all the items from the folders list.

Example:

Note: It removes default folder item as well.

REMOVEBYINDEX

Description:

It removes the folder path item using Index.

Syntax:

Example:

SAVE

Description:

Save method can be used to commit all the changes which are done using PathFinder object. If Save method is not used, your changes in Folder List will not be retained.

Example:


Leave a Reply

Your email address will not be published. Required fields are marked *