Oh there you go! That works. Bob S
> On Aug 29, 2018, at 13:58 , Brian Milby via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Here is another way to do it: > > function getHilightedValue pTreeWidgetReference > local tElement, tArray > put the arrayData of pTreeWidgetReference into tArray > put the hilitedElement of pTreeWidgetReference into tElement > split tElement by comma > return tArray[tElement] > end getHilightedValue _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode