Monday, January 12, 2004, 4:21:44 AM, Kai wrote:

> When using it exactly as shown (log-data %log.txt "Opened"), I
> receive

> ** Script Error: attempt has no value
> ** Where: log-data
> ** Near: attempt [write/append file data]

> Any ideas?

Looks like you are using an older version of REBOL that misses the
'attempt function. I'd suggest upgrading to a recent version, but you
could also simply add attempt yourself:

attempt: func [
    {Tries to evaluate and returns result or NONE on error.}
    value
][
    if not error? set/any 'value try :value [get/any 'value]
]

-- 
Best regards,
 Andreas

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to