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

Is the a better way

 [1/6] from: morgenwe::optonline::net at: 20-Feb-2001 8:50


For:
>> i
== 1
>> runinfo
== [["cat" "ok" "rebolcmd -s lookatcwsm19.r"]]
>> do rejoin [{runinfo/} i {/} i {: "dog"}]
== ["dog" "ok" "rebolcmd -s lookatcwsm19.r"] to modify a element within a nested block or any block - Larry

 [2/6] from: jeff:rebol at: 20-Feb-2001 6:51


Howdy, Larry: How about: change at runinfo/:i i "dog"

 [3/6] from: andrew:wxc at: 21-Feb-2001 5:54


> to modify a element within a nested block or any block >> i: 1
== 1
>> runinfo: [["cat" "ok" "rebolcmd -s lookatcwsm19.r"]]
== [["cat" "ok" "rebolcmd -s lookatcwsm19.r"]]
>> runinfo/1/1: "dog"
== ["dog" "ok" "rebolcmd -s lookatcwsm19.r"]
>> runinfo
== [["dog" "ok" "rebolcmd -s lookatcwsm19.r"]] Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [4/6] from: ryanc:iesco-dms at: 20-Feb-2001 11:04


Howabout:
>> runinfo
== [["cat" "ok" "rebolcmd -s lookatcwsm19.r"]]
>> change runinfo/1 "bat"
== ["ok" "rebolcmd -s lookatcwsm19.r"]
>> runinfo
== [["bat" "ok" "rebolcmd -s lookatcwsm19.r"]]
>>
Larry Morgenweck wrote:

 [5/6] from: ryanc:iesco-dms at: 20-Feb-2001 11:32


I just realized this is more like what your trying to do:
>> b
== [["purple" "green" "yellow"]]
>> x: 1
== 1
>> y: 2
== 2
>> change b/:x/:y "orange"
== ""
>> b
== [["purple" "orange" "yellow"]]
>>
--Ryan Ryan Cole wrote:
> Howabout: > >> runinfo
<<quoted lines omitted: 25>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Ryan Cole Programmer Analyst www.iesco-dms.com 707-468-5400 I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world. -Einstein

 [6/6] from: morgenwe:optonline at: 20-Feb-2001 14:44


Rayan I need to have a variable instead of a constant in > >> change runinfo/1 "bat" Larry Ryan Cole wrote:

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted