Author: Lou Adler
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?
1 { ... }2 Path := RootFolderNamespace.NameForParsing;
Solve 2:
3 function CurrentPath: string;
4 var5 node: PVirtualNode;
6 nameSpace: TNameSpace;
7 begin8 node := VET.GetFirstSelected;
9 if node <> nilthen10 begin11 VET.ValidateNamespace(node, nameSpace);
12 Result := NameSpace.FileSystem;
13 end;
14 end;