<<
 
I understand the TIMER function in a form.  What I want to
do is make it so the main form used by the sales and shop personnel will close
after a set amount of time IF the form has not been used.  My goal is to make
sure it does not close while they are using it.  
 
I understand I will use either an IF THEN statement or WHILE
loop but what would the proper syntax be for this function?
>>

The problem is that there's no "universal" even to trap for to show that some 
activity has taken place (some other environments let you do this in the form's 
OnKeyPress event).  So, you have to decide how many activities constitute 
"activity".  Then, in the EEP for each activity, you need to reset the INTERVAL 
property of the timer.

Depending on your form design, the logical places to put this reset function 
are 1) any menu option or button, 2) in the ON EXIT eep of text fields, 3) in 
the KEYPRESS event of text fields, especially memo fields.

The command to "reset" the timer so it will start counting (to 30 seconds) 
again is:

PROPERTY FORM TimerInterval '0'
PROPERTY FORM TimerInterval '30000'

--
Larry

Reply via email to