dc_setTimerEvent()
Posted: Mon Dec 27, 2010 2:19 pm
Roger,
It looks like DC_SetTimerEvent doesn't run the code block being timed for the first time until AFTER the timer has run the first time.
in this example, optimizepoll() doesn't run the first time until 60 seconds have elapsed. I thought the xbase settimerevent() ran the code clock first, then kicked the timer in. (i could certainly be wrong.. (AGAIN!!))
DCREAD GUI ;
FIT ;
TITLE "Monitoring Incoming Pictures" ;
MODAL ;
OPTIONS GetOptions ;
EVAL {|o|oTimer:=DC_SetTimerEvent():new(60* 100,;
{||guirun({||OptimizePoll(getlist,cAuction,lCreateDetail,lCreateThumbs,alltrim(cMonitorDirectory),alltrim(cDirectory)) })} )}
It looks like DC_SetTimerEvent doesn't run the code block being timed for the first time until AFTER the timer has run the first time.
in this example, optimizepoll() doesn't run the first time until 60 seconds have elapsed. I thought the xbase settimerevent() ran the code clock first, then kicked the timer in. (i could certainly be wrong.. (AGAIN!!))
DCREAD GUI ;
FIT ;
TITLE "Monitoring Incoming Pictures" ;
MODAL ;
OPTIONS GetOptions ;
EVAL {|o|oTimer:=DC_SetTimerEvent():new(60* 100,;
{||guirun({||OptimizePoll(getlist,cAuction,lCreateDetail,lCreateThumbs,alltrim(cMonitorDirectory),alltrim(cDirectory)) })} )}