Вниз
Скачать: CL | DM;

Путь в TreeView?   Найти похожие ветки 

← →
MadAngel ©   (2003-12-28 14:13) [0]

Как получить полный путь до выбранного итема в TreeView?


← →
Opuhshii ©   (2003-12-28 14:47) [1]

TTreeNode.Parent, TTreeNode.Level


← →
Opuhshii ©   (2003-12-28 14:47) [2]

выбраный соответственно TTreeView.Selected


← →
jack128 ©   (2003-12-28 14:53) [3]

Node := TreeView.Selected;
Result := "";
while Assigned(Node) do
begin
Result := Result + Node.Text +",";
Node := Node.Parent;
end;
SetLength(Result, Length(Result) - 1);


← →
MadAngel ©   (2003-12-28 15:19) [4]

to jack128
Спасибо большое,только надо было вот так:

Var
Node:TTreeNode;
Result:string;
begin
Node := TreeView1.Selected;
Result := "";
while Assigned(Node) do
begin
Result :=Node.Text+"\"+Result;
Node := Node.Parent;
end;
SetLength(Result, Length(Result) - 1);
end;

Может кому пригодится...



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
1-37757
Kuku
2003-12-30 00:38
2004.01.13
case of не работает для строк


7-37963
h0use
2003-10-28 17:05
2004.01.13
Не инсталлируется сервис по /install


3-37532
sirin
2003-12-15 19:13
2004.01.13
DBGrib


6-37826
zxc
2003-11-14 13:53
2004.01.13
наверное глупый вопрос но всё же..


3-37516
____Nikolay
2003-12-16 18:13
2004.01.13
Хранимые процедуры в MS SQL




   Наверх