PREEXIT functionality?

Ken Langendock Ken at Langendock.com
Tue May 1 22:04:04 CDT 2007


The only way I can think of being sure of what you want is to introduce an
"invisible" screen that calls this screen you want to test. You would pass a
flag to the called screen that could be tested in the calling screen. That
would push them back into the screen again for a reminder.

I.e.

Screen hidden

Procedure internal call-screen
Begin
  run screen LaunchScreen &
      passing stuff, &
              t-jobrun
End

Procedure initialize
Begin
  let t-jobrun = " "
  do internal call-screen
  if t-jobrun ne "Y"
     begin
     let t-jobrun = "N"
     do internal call-screen
     end
End
 


Screen LaunchScreen
Blah blah blah

Procedure initialize
Begin
  if "N" eq t-jobrun
     then warn "You dummy, you didn't run the job"
End

Procedure designer job
Begin
  let t-jobrun = "Y"
  ...
end


I used this approach when I had a screen that MUST tally up to 100%, even if
it crossed multiple screens. This allowed me to keep the user in the screen
until they satisfied my edit (the difference is the screen call was in a
loop).

Ken



-----Original Message-----
From: powerh-l-bounces+ken.langendock=rogers.com at lists.sowder.com
[mailto:powerh-l-bounces+ken.langendock=rogers.com at lists.sowder.com] On
Behalf Of Richard Witkopp
Sent: May 1, 2007 5:44 PM
To: 'powerh-l at lists.sowder.com'
Subject: PREEXIT functionality?

It would be nice if there was a PREEXIT procedure available in QUICK. At
times, you want to do a final check of things before the user exits so you
can slap him upside the head if he forgot something. Unfortunately, the EXIT
procedure is not a good place to do much because Powerhoose has shut down a
lot of stuff in preparation for leaving the screen. A lot of things won't
work or won't work consistently.

Is there a workaround to replicate the functionality of a PREEXIT procedure?

NOTICE: The information contained in this e-mail and any attachments is
confidential and may be privileged or otherwise protected from disclosure.
This e-mail is intended solely for the use of the named addressee. Any other
use, printing, copying, disclosure or dissemination may be subject to legal
restriction. If you are not the intended recipient, please contact the
sender and delete all copies including any attachments.

--
= = = = = = = = = = = = = = = = = = = = = = = = = = = = Mailing list:
powerh-l at lists.sowder.com
Subscribe: "subscribe" in message body to
powerh-l-request at lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the list
archive at Google.



More information about the powerh-l mailing list