Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Text-List more help please

From: ammoncooke:yah:oo at: 25-May-2001 16:16

I came up with: fix-slider: func [faces [object! block!]] [ foreach list to-block faces [ list/sld/redrag list/lc / max 1 length? head list/lines ] ] view layout [ txt "Select an item to delete, then click button" tl1: text-list 150x50 data ["apples" "oranges" "bananas" "pears" kiwi ] button "Delete" [ remove tl1/lines fix-slider tl1 show tl1 ] ] Which also only deleted one item no matter how many where selected. I would additionally like to be able to reference the data in the list like an index. i.e. how do I know how many items are in the list? Can I access an item from an index number??
<snip> > > They are *not* lame questions, and you are right that the documentation > is slim, and that the list is one of the few ways to find this sort of > thing out. > > Happy VIDing. > --Scott Jones
</snip> Thanks!! Ammon