Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need functionality like READ's TIMEOUT under 2.6
Message
De
14/02/1999 20:50:06
 
 
À
12/02/1999 12:36:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00187075
Message ID:
00187570
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform