Get the path of the current folder in a TVirtualExplorerListview (Views: 27)
Problem/Question/Abstract: How can I get the Path of the current folder? With the ComboBox I can use *.path but the path property doesn't exist in VEL. Answer: Solve 1: Do you mean the folder that the files listed are in? { ... } Path := RootFolderNamespace.NameForParsing; Solve 2: function CurrentPath: string; var node: PVirtualNode; nameSpace: TNameSpace; begin node := VET.GetFirstSelected; if node <> nil then begin VET.ValidateNamespace(node, nameSpace); Result := NameSpace.FileSystem; end; end; |