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

[REBOL] Re: Text-List oddity?

From: carl::cybercraft::co::nz at: 24-Dec-2003 22:20

On 15-Jun-03, Jaime Vargas wrote:
> Hello all. I don't remember if I introduce myself before, but I had > done some postings here and there. I am newbie/intermediate > programmer try to get a good understating of Rebol. Which BTW, > I like everyday more and more. > However sometimes I find things that just don't make any sense. > Can any one explain why the keys-tl face doesn't get refresh in > the following script? > db: [ key1 "value1" key2 "value2"] > lay: layout [ > keys-tl: text-list > with [ > texts: copy [] > ] > load-btn: btn "Show keys" > [ > keys-tl/texts: copy extract db 2 > probe keys-tl/texts > show keys-tl > ] > ] > view lay
Hi Jaime, I'm not sure if there's a way to get your method to work, but I normally place text-list values in its data block by inserting them into it. ie, something like this... db: [ key1 "value1" key2 "value2"] lay: layout [ keys-tl: text-list data [] load-btn: button "Show keys" [ insert clear keys-tl/data copy extract db 2 probe keys-tl/data show keys-tl ] ] view lay Hope that helps. -- Carl Read