Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 20 OCT 1997 01:28:47PM Douglas Hahn wrote:

I am wrote a program that calls a collector. In this collector, I would like to have an alt-D process. When the alt-D process is invoked, I would like it to automatically exit the collector and inform the original program that the user ran the alt-D process.

So far, I have written the original program. I have created the collector. I have redefined the alt-D key using @PRIORITY.INT and @MACRO.KEYS. When I am in the collector and press alt-D the delete trap program runs (it prompts me to press alt-D again - my message, not the default AREV message). It blanks out the record and it automatically returns to the calling program. However, back at the calling program, @PSEUDO is populated with the same data that was passed to the collector before I called the collector and I want it to be blank to indicate that the record was deleted.

In my delete trap program I set @RECORD to "", but this is again reset by the window processor before returning to the original calling program. In my delete trap program I set:

       @RECORD="   ;* I want the record blanked out
       WDONE=1      ;* This makes the screen close
       DATA ""        ;* Kicks the window processor into action

Is there another common variable to set? I've tried RESET with most numbers from 1 to 10, but it doesn't do what I want. I know that I can use @USER0 and set it to "THE RECORD HAS BEEN DELETED", but I consider that to be messy. Any suggestions on a better solution?

Douglas Hahn

[email protected]


At 20 OCT 1997 05:13PM Victor Engel wrote:

I haven't tried messing with @Priority.Int in a collector. I would suggest, however, to try modifying @PSEUDO directly instead of through @RECORD if you can't get your macro key to work.

Victor


At 21 OCT 1997 07:06AM Aaron Kaplan wrote:

Try playing with the save and exit options of the collector. You can probably check something there.

[email protected]

Sprezzatura Ltd

www.sprezzatura.com_zz.jpg


At 21 OCT 1997 06:47PM K. Gilfilen wrote:

what about clearing wc_orec%? It might be that the ;window "knows" the record has been changed (okay, deleted), and maybe you have disabled the exit confirmation message.Then logically, it should not return an empty @pseudo. If this is the case, clear orec and @record, and that might do it. You may not need to set wc_reset% since it should fully reprocess everything before exiting and you don't want a display change. If that still fails try nullling @pseudo in the window too.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/d00b8ab04b10f3748525653600600539.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1