Ciao a tutti! Ho il seguente problema: ho un TreeView con 3 nodi padri(ognuno corrisponde a un dominio di posta es:tin.it). Ora devo leggere da un db paradox tutti gli account (es : alan@tin.it) e inserirli al padre corretto!Concettualmente so come fare:
user.First; //nome tabella
while not user.Eof do
begin
s := user.fieldByName('User').AsString;
if (StrPos(PChar(s), PChar(dominio)) <> nil) then
TreeView1.Items.AddChild(....., s) do
form1.user.Next;
end;
Il problema è nella AddChild xchè lì devo specificare il nodo padre ma io nn ho il nodo! So solo il nome del padre!
Spero che qualcuno mi aiuti!
Grazie!!!!!![]()
![]()
![]()
![]()
![]()
![]()
p.s. sto usando Delphi 5 in Windows XP