evaluate the "it" variable in an external

Alex Rice alex at mindlube.com
Mon Dec 22 00:28:46 EST 2003


On Dec 21, 2003, at 7:05 PM, Mark Wieder wrote:

> The "ask" dialog is called *from* the external. That's the function of
> the SendCardMessage() call. I don't like the idea of hardcoding the
> result variable, but that of course could be passed in an argument.
> This works as a proof of concept.
>

Mark, thanks for the suggestion, but yours seems more complicated than 
my method, which does work btw.

What would be the advantage of using a clipsResult temporary variable 
instead of just evaluating directly to get the function return value? 
Here is my working version again:

// the C
result = EvalExpr("revclipsAsk()", &retval);

// the transcript
function revclipsAsk
   ask info "Your input:" titled "CLIPS input"
   if it <> empty then
     return it
   end if
   return the result
end revclipsAsk


Alex Rice <alex at mindlube.com> | Mindlube Software | 
<http://mindlube.com>

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco



More information about the use-livecode mailing list