Where can I find the error message from an external
Mark Wieder
mwieder at ahsoftware.net
Mon Nov 28 14:17:27 EST 2005
Marco-
Saturday, November 26, 2005, 5:32:22 AM, you wrote:
> The C-source inside the external looks like this:
> *pass = False;
> *error = True;
You don't want to do this.
Setting error to true will cause the script to stop executing and
display an error message. That's what you're seeing there.
Instead, set error=True, and return your error message in retstring
the way you're currently doing it. Then on return from your external
call check the value of "the result".
> on mouseUp
> lock error dialogs
> ErrorReturnValueTestCommand 1
if the result is not empty then
errorDialog the result
end if
> end mouseUp
> on errorDialog myError
> put myError into field "errorResultTextField"
> end errorDialog
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list