Knowledge Base

ShellBrowser Delphi Components



Question / Problem

How can I get a list of all checked items in a JamShellTreeList?

Answer / Solution

If you want to iterate over the list of all selected items, you can use the method FindNext() of the JamSelectionList, e.g.: 

JamShellTree.ShellLink.SelectionList.FindNext;

This returns the names of the selected files and folders. When all items have been enumerated, an empty string will be returned.

If you want to get a list of the selected items, you can use the Paths property of the JamSelectionList.