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

[REBOL] how to do this better was Re: How to do a portion of a layout?

From: bry::itnisk::com at: 25-Mar-2004 11:55

okay I have the following: search-engines: make Object! [ Google: [" q=" "&btnG=Google+Search"] Dogpile: [" b/" ""] HotBot: [" query=" &ps=&loc=searchbox&tab=web&provKey=Inktomi ] Vivisimo: [" query=" "&sources=Web"] Alexa: ["" ""] Eurekster: [" p=Q&ts=e&f=&w=" ""] ] swords: next first search-engines button-list: "" v: {layout [ backdrop 219.219.219 across word_to_lookup: field 120 [] return } buttons: foreach word swords[searchstring: get in search-engines word s1: pick searchstring 1 s2: pick searchstring 2 append button-list reform[ { button "} word {" [do-browser join ["} s1{" word_to_lookup/text "}s2{"]] return } ] ] append v button-list append v "]" view do v and I sort of find that whole buttons word to be really darn ugly. How would one do this in a cleaner manner, I don't mind if it's more verbose, I just want it to be a little bit more comprehensible without all that ugly escaping. By the way, why does probe start the shell. And is there any smart stuff, or dumb stuff, that one could do starting the shell from the Rebol/View dll?