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

[REBOL] Re: Can this be done?

From: antonr:iinet:au at: 24-Apr-2003 3:05

Try this out:
>> get MSG-ID: to-word append "MSG-" "002"
== "This is message number two" then alert [ get MSG-ID "CLEAR" ] You will need to do your own zero padding. But why not convert the id string to an integer? Can't you put all messages in a block?: id: to-integer "002" msg: [ "message one" "message two" ] alert reduce [pick msg id "clear"] or maybe
>> msg: [001 "message one" 002 "message two"]
== [1 "message one" 2 "message two"]
>> select msg to-integer "002"
== "message two" Anton Rolls.