Advertisement
TLama

Untitled

Sep 9th, 2014
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.34 KB | None | 0 0
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3.   I: Integer;
  4.   Columns: string;
  5. begin
  6.   Columns := '';
  7.   for I := 0 to TreeView1.SelectionCount - 1 do
  8.     Columns := Columns + TreeView1.Selections[I].Text + ', ';
  9.   Delete(Columns, Length(Columns) - 1, 2);
  10.   // Columns string now contains comma separated list of selected node texts
  11. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement