Your best bet is to trap the control box close in the closeQuery and
disregard it if the report is still running.  Accomplish this with a couple
of booleans:  ib_okToClose, ib_reportRunning.

In the closequery event, if ib_okToClose is false or ib_reportRunning is
true, then do not allow the window to close (return 1).

In the pfc_close event, set ib_okToClose to be True.  This way, when the
user closes the window from your command button (OK, Close, whatever you
call it), the window will close.

Set ib_reportRunning to true when the report starts and to false when it
finishes....

Happy New Year,
Daniel


----- Original Message -----
From: Rendra Yap <[EMAIL PROTECTED]>
To: PBPFC Mailing List (E-mail) <[EMAIL PROTECTED]>; PFC mailing list
(E-mail) <[EMAIL PROTECTED]>
Sent: Thursday, December 30, 1999 12:05 AM
Subject: PFCSIG URGENT : Problem with using uo_progressbar


> Hallo, everyone.
>
> I've got a problem that I want to ask to everyone, that's about using
> uo_progressbar.
> I'm using a window of progress bar for complex report (window type is
window
> popup), and I add a cancel button for interrupt the long process.
> And I put yield() at looping process, so that user can click that cancel
> button.
> But the problem appeared.
> If the report process haven't finish yet or during the process.
> I can click the close button of report window and error was occurred.
> I think that problem cause by the yield().
> Does anyone know the synonim of yield(), so that I only can click the
cancel
> button ?
> does anyone can solve this problem ?
>
> This is the script of my report process.
>
> For ll_counter = 1 to ll_row
> yield()
> w_progress.uo_1.of_increment(1)
> : a lot of process
> :
> next
>
> Thanx before,
>
> Rendra Yap
> Bussiness Development System
> PT. Surabaya Agung Industri Pulp & Kertas
> E-mail : [EMAIL PROTECTED]
> ICQ #  37557798
>
>
> > [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]

Reply via email to