Re: OPO question
Date: 1995/08/10
Message-ID: <40dii9$368_at_newsbf02.news.aol.com>#1/1
In article <40cbob$vgs_at_newsgate.sps.mot.com>, Antony Man <r22446_at_paccvm.corp.mot.com> writes:
>Subject: OPO question
>From: Antony Man <r22446_at_paccvm.corp.mot.com>
>Date: 10 Aug 1995 07:16:27 GMT
>
>Can Oracle Power Objects perform a process continuous but remain to
handle
>the
>system events for objects?
>
>Example: A stopwatch. I press a button to start counting. Then I press
>another to
>stop the count. How can I do it in OPO?
>
>When my process start the count, no system event will be handled?
>
>--
>Antony Man
Well, I'm kinda new at it myself, but here is what I've found. What you
want
is the TestCommand Method (at the form level). Here's a sample of
something that works:
TestCommand(cmdCode as Integer) as Long
DIM CurrSec as Integer
CurrSec = second(NOW)
fldTemp.value = CurrSec
IF (gSecInterval > 0) and (gLastSec <> CurrSec) THEN
IF CurrSec mod gSecInterval = 0 THEN frmLocks.repLocks.query() gLastSec = CurrSec END IF
END IF -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-
This in the TestCommand of one of my forms. gSecInterval is user-set as a
value of how often to update the form (the form in this case is same as
SQL*DBA's locks monitor). For some reason, I have to keep setting the
value of *something* to keep this sucker spinning (in this case I use the
hidden field of fldTemp). I'm sure that relate's to TestCommand primary
function is to see if a user has clicked on a menu or toolbar. I figured
this
would be similar to HyperCard's on Idle handler (I use to work on Mac's
for a living ;).
Enjoy,
Chris Kasten
Opinions? Mine Mine Mine Mine and all Mine!! Received on Thu Aug 10 1995 - 00:00:00 CEST