Something new?

I have a treeview (actually a columnview) whose Item keys are a concatenated 
string of filename and 
version via 
  Subst("&1-&2", hItem.Name, hItem.Version)

When loading the view and I encounter an item with the same filename but a 
different version I'd like to add the new version as a child node under the 
existing original.

Short of processing the key of every node in the view I can't see a way to 
detect the parent node I am looking for.

What I am looking for is a partial key recognition of the following ilk:
  If ColumnView1.Exists(Like NewItem.FileName&"-*") Then
    ' add a child node
  Else
    ' add a parent (root) node
  EndIf

Any clues?

tia
Bruce

-- 
B Bruen <adamn...@gnail.com (sort of)>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to