need codeblock to control AUTOREFRESH

This forum is for eXpress++ general support.
Post Reply
Message
Author
fursideup
Posts: 8
Joined: Tue Feb 02, 2010 2:26 pm
Location: Gates Canyon, California

need codeblock to control AUTOREFRESH

#1 Post by fursideup »

If AUTOREFRESH had the capability to have a codeblock attached that controlled if the refresh happens - it would solve my problem.
Jon Steven

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: need codeblock to control AUTOREFRESH

#2 Post by rdonnay »

I added a new WHEN subclause to the AUTOREFRESH clause.

Example:

Code: Select all

@ .. DCBROWSE .. AUTOREFRESH 1000 WHEN {||NotBusy()}
The attached file contains the following:

dcdialog.ch - copy to \exp19\include
_dcxbrow.prg - copy to \exp19\source\dclipx

Rebuild dclipx.dll by running build19_sl1.bat
Attachments
autorefresh.zip
AutoRefresh .. When
(61.6 KiB) Downloaded 921 times
The eXpress train is coming - and it has more cars.

fursideup
Posts: 8
Joined: Tue Feb 02, 2010 2:26 pm
Location: Gates Canyon, California

Re: need codeblock to control AUTOREFRESH

#3 Post by fursideup »

you de man!!
Jon Steven

fursideup
Posts: 8
Joined: Tue Feb 02, 2010 2:26 pm
Location: Gates Canyon, California

Re: need codeblock to control AUTOREFRESH

#4 Post by fursideup »

reminder from IM:

can add another parameter like so:
AUTOREFRESH 1000 WHEN {||NotBusy()} REFRESHBLOCK {||MyrefreshFunction()}
Jon Steven

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: need codeblock to control AUTOREFRESH

#5 Post by rdonnay »

Done.

Attached.
Attachments
autorefresh.zip
Autorefresh Block
(61.67 KiB) Downloaded 916 times
The eXpress train is coming - and it has more cars.

Post Reply