Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need functionality like READ's TIMEOUT under 2.6
Message
From
14/02/1999 20:50:06
 
 
To
12/02/1999 12:36:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00187075
Message ID:
00187570
Views:
24
>Hi All,
>
>I need to duplicate some functionality that I used to do in FP2.6. I used the TIMEOUT option of READ to have screens "time out" after a certain period of time.
>
>I know that I could use a Timer event, but I'm worried about this affecting performance.
>
>Any suggestions? TIA.

Keith

A timer has an INTERVAL property. This is the milliseconds and specifies 2 things. 1) The number of milliseconds between the Timer event and

More important in this case 2) The delay in milliseconds from the time the timer is enabled to the time its .Timer event fires.

What this means to you is that you can create a timer object whose timer event will fire in say 15 seconds (Timer.Interval = 15000).

The init of the form will enable this timer. After 15 seconds the Timer Event will fire - THisForm.Release or any other code you choose to put there.

There you have it a timeout in a form's get.

Remember point 2) above.

Bernard
Previous
Reply
Map
View

Click here to load this message in the networking platform