You can do it with a window with a Cancel button. The code in this cancel
should
set an instance variable called ib_quitWorking, or whatever. Then, in your
loop, if ib_quitWorking = True, then do an EXIT to get out of your loop.
You'll need to have a Yield() within the loop so the button click can
happen... note this will slow down your loop though because you're telling
the operating system that you do not want it's undivided attention....
You're logic will need to be in a business object controlled by the window.
D
----- Original Message -----
From: Jill M. Claus <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: Jill M. Claus <[EMAIL PROTECTED]>
Sent: Thursday, January 06, 2000 12:07 PM
Subject: PFCSIG Capture a key stroke
> Hello Everyone,
>
> I am using Sybase 11 and PowerBuilder 6.5 on an NT4 PC. The application
uses PFC.
>
> I have a loop in the open script of a window that prints about 400
different slices of the that report if the user indicated they wanted a full
set of reports printed. (in the menu) I want to give the user the option
to break out of the loop by pressing the ESC key. (or something similar)
Does anyone have a script sample that does this, or something similar?
>
> Any help would be greatly appreciated,
> Jill
>
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
>
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]