[Gambas-user] (hard?) Testing for a treeview key with Like

Fabien Bodard gambas.fr at ...626...
Wed Jan 7 12:25:04 CET 2015


.Find ?
Le 7 janv. 2015 05:10, "adamnt42 at ...626..." <adamnt42 at ...626...> a écrit :

> 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 <adamnt42 at ...3379... (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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list