Charles:

> ** Script Error: attempt has no value

The REBOL development environment is a mess of overlapping and incomplete 
versions of the REBOL.exe.

And it is not always clear when someone posts some code whether you need to 
download yet another REBOL.exe to get that code to work.

I suspect you have the official REBOL/View download from
http://www.rebol.com/download.html

(The official REBOL/Core includes 'attempt, but the official REBOL/View does 
not)

You could try a beta from....
http://www.rebol.net/builds/
...provided there is an appropriate beta for your platform.
....but be careful not to overwrite your existing REBOL.exe as the newer beta 
may break some code in existing applications.

Or you could define 'attempt as a function -- this is taken from a recent 
beta:
>> source attempt
attempt: func [
    {Tries to evaluate and returns result or NONE on error.}
    value][
    if not error? set/any 'value try :value [get/any 'value]]

That gets you past the 'attempt, but you may fail later if the code you are 
executing requires other beta features.

Good luck!
Sunanda
-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to