Where can I find the error message from an external

David Burgun dburgun at dsl.pipex.com
Mon Nov 28 08:42:23 EST 2005


I think that:

ExternalCommand x,y,z
put result into myResult

Is what you want.

Hope this helps
All the Best
Dave


>I am writing an external and it works fine. But I can not get the 
>error message.
>
>The C-source inside the external looks like this:
>
>*pass = False;
>*error = True;
>*retstring = istrdup ("This is my error message");
>return;
>
>In Revolution I programed this:
>
>on mouseUp
>   lock error dialogs
>   ErrorReturnValueTestCommand 1
>end mouseUp
>
>on errorDialog myError
>   put myError into field "errorResultTextField"
>end errorDialog
>
>But the contents of myError is this, instead of the error text I 
>generated inside the external:
>
>573,3,1,ErrorReturnValueTestCommand
>241,3,1,mouseUp
>353,0,0,button id 1023 of card id 1002 of stack 
>"/Users/marco/Desktop/Revolution External/Revolution 
>2.6.1/SUSBTest.rev"
>
>How can I get a message from an external when *error=True ?
>
>I am not very familiar with Revolution. I am only writing an 
>external for OSX. But after examining the complete mailing archive 
>and the revolution Documentaion, I can't find out what's going 
>wrong. It seems that I am the single external programmer with this 
>problem.
>
>best regards
>Marco
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your 
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list