evaluate the "it" variable in an external

Mark Wieder mwieder at ahsoftware.net
Sun Dec 21 21:05:16 EST 2003


jbv-

Well, I didn't say this is necessarily how *I* would choose to get
user input, but for the record...

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.

...and for all that it was pretty straightforward to debug. Once the
Transcript function was working (not a problem) the external function
either called it and set the variable or it didn't. It didn't several
times, and then I fixed a couple of stupid errors and it did. End of
story.

Sunday, December 21, 2003, 1:35:18 PM, you wrote:

j> Of course you can send messages to Rev objects
j> from within an external, and your example certainly
j> works...
j> But don't you think that, in this case, it's a bit
j> too tricky (if not perverse), especially for a simple
j> "ask" dialog which, above all, is called BEFORE
j> the external ?
j> Last but not least, such "tricks" are often pretty
j> hard to debug...

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list