[REBOL] Re: Can this be done?
From: greggirwin:mindspring at: 23-Apr-2003 11:34
Hi Steven,
You're close! I stripped out the comments for brevity. You need to
turn the string into a word so REBOL can find its value, then use GET
to retrieve the value.
MSG-001: "This is message number one"
MSG-002: "This is message number two"
SHOWALERT: func [
"Display alert box with message based on passed message number"
MSG-NUMBER [string!] "Message number as three-byte string"
][
MSG-ID: to word! join "MSG-" MSG-NUMBER
alert reduce [ rejoin [MSG-ID " - " get msg-id] "CLEAR" ]
]
SHOWALERT "001"
-- Gregg