evaluate the "it" variable in an external
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
ask info "Your input:" titled "CLIPS input"
if it <> empty then
return the result
Alex Rice <alex at mindlube.com> | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
More information about the Use-livecode