Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
THISFORM.Release if idle?
Message
From
09/12/1997 16:04:47
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00064783
Message ID:
00064792
Views:
34
>>>I want to close down a form after it has been inactive for a certain period of time. I'm assuming I should use a timer but I'm not sure how to use it properly to capture this situation. Any ideas?
>>
>>*** Timer.Timer event
>>IF ABS(seconds()-thisform.seconds)>1200 && check every 20 min.
>> Release Thisform
>>ENDIF
>>*** ControlX.InteractiveChange event (or something else)
>>Thisform.seconds=seconds()
>
>The Timer event and Seconds property I understand but I need some clarification on the ControlX. Do you mean I should have a particular object to update Thisform.Seconds or do I need to update it from every object?

I meant any object. You should clarify what means 'inactive' form. If it means that user doesn't change values of some controls then InteractiveChange of this controls should participate, if it means not clicking on some buttons, them buttons click events should be added, etc.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform