ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
JamSelectionList.TJamBaseSelectionList.Path

Gives back the filename of an item.

Syntax
Pascal
property Path [i : Integer]: String;

With this property you can get the path with index i from the list of selected paths. i must be between 0 and (Count - 1).

The following example will write the list of selected files to a section called 'SelectedPaths' in the Windows Registry:

// Create Registry Object and point it to the right place
Registry := TRegIniFile.Create;
Registry.OpenKey('SoftwareJAM Software' + Application.Title, True);
// Erase previous paths stored here
Registry.EraseSection('SelectedPaths');
// Write the selected paths to the registry
for i:=0 to JamShellLink.SelectionList.Count-1 do begin
  Registry.WriteString('SelectedPaths', IntToStr(i), JamShellLink.SelectionList[i])
end;//for
// clean up
Registry.Free;