>This message is in MIME format. Since your mail reader does not understand
>this format, some or all of this message may not be legible.
>
>------_=_NextPart_001_01BFD020.0EA6FC7E
>Content-Type: text/plain;
>       charset="iso-8859-1"
>
>How do I detect an error in a "Set Directory" statement?
>
>It appears that 'set the directory to "My Dir"; answer the result' will
>return an empty string on success, an error message on failure.  This
>behavior makes sense.
>
>But 'set the directory to myFunction(); answer the result' appears to return
>the result of myFunction on success, and an error message on failure.  I
>found this unacceptable because myFunction may return something that looks
>like an error.
>
>I'm assuming that 'the result' was getting confused by the function call.
>So I tried 'get myFunction(); set the directory to it; answer the result'.
>This form returns the value of 'it' on success, an error message on failure.
>So I have the same problem as with the function call.
>
>How can I reliably determine if "Set Directory" worked or failed?

Use a handler instead of a function. 

Regards, Andu

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to