Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer coding

Status
Not open for further replies.

abidali3

Programmer
Feb 22, 2003
27
PK
hi to all
i am want to make timer for auto close form when user stop using form..
thanks for replay
abidali3
 
hi tank's for replay.
i did this work but ..
what kind of coding use in WHEN-TIMER-EXPIRED
for auto colse form after 5 min.
when user does not use computer.

.. abidali3
 
In general you should check whether particularly the timer you need has fired that trigger and if so issue EXIT_FORM. BTW how do you identify that the form is not used?

Regards, Dima
 
Thank's for replay
i am useing WHEN-TIMER-EXPIRED at form level.
and create one text field name ":S" where time counting is start when form open this field start counting.
i am using this coding ...

IF :S = 300 THEN
EXIT_FORM;
END IF;

and an other coding on WHEN-MOUSE-MOVE
:S :=0;

when this field get 300 then form close and if mouse move between this then :S get 0 and time start again.
but i could not restart when key board use..
what trigger user when press any key of keyboard..
thank's for this
Abidali3/....
 
You cant trap the individual key presses of the keyboard in forms. This is one of its biggest failings IMO. The nearest you will get is an ON-LOCK trigger, and that will only fire once per record in base table items. You will need to reset the timer using a number of different triggers, such as WHEN-NEW-BLOCK-INSTANCE, WHEN-NEW-ITEM-INSTANCE, WHEN-NEW-RECORD-INSTANCE for example.

However, if you have a large text item that requires the user to enter a lot of data your timer could time out before they have finished entering their data!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top