Autor Beitrag
Kinimod8
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 24

Win XP Home
D3 Prof
BeitragVerfasst: Fr 01.08.03 15:16 
Hallo,

wie kann ich die Anzahl der Strings aus einem TTreeView ermitteln?
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 02.08.03 14:17 
Hallo

bin mir nicht ganz klar, was du meinst. willst du die Anzahl der Knoten bestimmen oder was genau willst du erreichen ?

mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Kinimod8 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 24

Win XP Home
D3 Prof
BeitragVerfasst: Sa 02.08.03 19:44 
Titel: Das möchte ich
Ich möchte auf Knopfdruck wissen, ob im TreeView 0 Strings drin sind (mit if).
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 02.08.03 20:36 
ich raff trotzdem nicht ganz, was du mit Strings meinst.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Button3Click(Sender: TObject);
begin
  if TreeView1.Items.Count=0 then Button3.Caption := 'kein Treeknoten im treeview'
                             else Button3.Caption := 'was im treeview drin';
end;

würde dir sagen , ob das treeview leer ist oder nicht. ist es das, was du suchst?

mfg frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Kinimod8 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 24

Win XP Home
D3 Prof
BeitragVerfasst: So 03.08.03 09:16 
Titel: genau
Ja, das habe ich gesucht! :D