Article View: borland.public.delphi.winforms.controls.using
Article #250Re: Treeview, TreeNodes Collection and Contains
From: Stewart Basterash
Date: Tue, 18 Jan 2005 21:14
Date: Tue, 18 Jan 2005 21:14
32 lines
2479 bytes
2479 bytes
If no body can answer the question... I'll answer it myself! "Stewart Basterash" <stewartbash@hotmail.com> wrote in message news:41ed7866@newsgroups.borland.com... >I have messed with this for some time as well... I have discovered that it >is not You or I that is the problem, but the implementation... The >solutions that I have found are just simply rediculous... they want you to >create a Hash Table that duplicates the treenode structure... this is just >ludicrous... Why would anybody want to go and duplicate effort... Welcome >to the new millenium of RAD development!... The .NET Way... > > The method that I am using is a bit more usable... The "TAG" property in > .NET is an Object... which means that it can be a variable (string or > integer), or a full object class... I simply wrote my own recursive > function that searches for what I want... essentially I wrote my own > funciton to replace Contains... it silly that this thing does not work... > but it is a .NET issue... not a Delphi issue! > > "Stewart Basterash" <stewartbash@hotmail.com> wrote in message > news:41daf6dd$1@newsgroups.borland.com... >>I cannot seem to get the Contains function to return anything but FALSE in >>a tree view... >> >> Does anyone know how TreeNodes.Contains will return true... >> >> I have tried passing the text string. >> I have tried creating a node with the text string on the fly... >> >> What is up with this? >> > >
Technical Details
Message-ID:
<41ed7c38@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41daf6dd$1@newsgroups.borland.com> <41ed7866@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,910be9e641827659 X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Stewart Basterash" <stewartbash@hotmail.com> Newsgroups: borland.public.delphi.winforms.controls.using References: <41daf6dd$1@newsgroups.borland.com> <41ed7866@newsgroups.borland.com> Subject: Re: Treeview, TreeNodes Collection and Contains Date: Tue, 18 Jan 2005 15:14:32 -0600 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 65.42.181.37 Message-ID: <41ed7c38@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106082872 65.42.181.37 (18 Jan 2005 13:14:32 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail