ejkst@unix.cis.pitt.edu (Eric J. Kennedy) (01/06/90)
I'm trying to do some work with Uedit and ARexx, and I'm having some trouble. Briefly the problem can be illustrated by the following example. I send a message containing "getfile()" to ARexx from uedit. (That's the ARP file requester; the necessary libraries are all loaded.) ARexx gets the message and calls getfile(), which puts up a requester. I choose a file "foobar" from the requester. Since the result of getfile() wasn't redirected to a variable or 'say' or anything like that, the value "foobar" gets returned to uedit. This is pretty much what I want. However, "foobar" gets returned to uedit in a new message, not in the reply to Uedit's original message. Then Uedit must reply to ARexx's message, then retrieve the reply to the original message. Schematically, Uedit ARexx Message 1 --------"getfile()"---------> <-------"foobar"------------- message 2 message 2 reply ---<okay>-------------> <--------<okay>-------------- message 1 reply I want to condense this to Uedit ARexx Message 1 ------"getfile()"--------------> <--------"foobar"---------------- message 1 reply but I can't figure out how. Uedit supposedly provides access to RXFF_RESULT flag, but when I try to use it, it either is ignored or crashes the machine. I suspect the solution may be something like saving the result of getfile() to a variable, then using some reply or return function to get that result back to Uedit. I can't seem to find out what that might be, though. -- Eric Kennedy ejkst@cis.unix.pitt.edu