Re: "DoEvents" equivalent in Forms 4.5

From: Steve Cosner <stevec_at_zimmer.csufresno.edu>
Date: 1998/01/05
Message-ID: <68r3ld$e7p_at_info.csufresno.edu>#1/1


In article <34b0e8ce.1473351_at_news.mbnet.mb.ca>, Michael Anderson <manders_at_mbnet.mb.ca> wrote:
> Like YyWong (see "Cancel operation when procedure is running") I
> have the problem where I would like to implement a cancel button
> that can be used while a procedure is running. The problem is I
> could exit the loop if a condition changed, but Forms does not
> process any events until the trigger that is currently running is
> done. Visual Basic has DoEvents which passes control to the
> operating system, so that events such as pressing a cancel button or
> moving the form can be processed. Is there such a command or a way
> of implementing a similar thing in Oracle Forms 4.5?

The way to do that is to use a timer. To start the process, start a repeating timer that continues to rerun itself. Each time it expires, run your process once. Assign a key trigger or button that when pressed deletes your timer so the process will stop. Each time your process runs and terminates, the form will process any user actions (such as pressing keys or clicking buttons) before processing the when-timer-expired trigger that restarts the process.  

HTH
Steve Cosner



http://members.aol.com/stevec5088
Downloadable QA utility form: Display and update any table. Received on Mon Jan 05 1998 - 00:00:00 CET

Original text of this message