Tech Tip: Using a timer event with 4D Write 2004.1
PRODUCT: 4D Write | VERSION: 2004.1 | PLATFORM: Mac & Win
Published On: April 21, 2005
In 4D Write 2004.1 a new “wr on timer” event is provide to offer specific handling of “timer” type events. The timer can be used more particularly to implement an automatic back-up security mechanism for documents being edited, etc.
To use the event, use the WR ON EVENT command. For example:
WR ON EVENT(myArea; wr on timer; “myMethod”)
When the previous statement is executed, the “myMethod” method will be executed at a regular interval (by default, ever 60 seconds) as long as the “myArea” remains open.