MKDIR

Interval

The Timer control's Interval property determines the length of time between Timer events firing.

Usage

nInterval = tmrTimer.Interval tmrTimer.Interval = nInterval
The Interval property specifies how much time (in milliseconds) elapses between each firing of the Timer's Timer event. Timers are turned off by setting the Enabled property .F. or by setting the Interval to zero. In earlier versions, we found that zeroing out the Interval and restoring its value can be more efficient than the time-consuming toggling of Enabled when the interval is very small. You'll need to test the two alternatives in your environment to see which works best for you.

Example

frmForm.Timer1.Interval = 1500  && One and a half seconds ? frmForm.Timer1.Interval

See Also

Timer, Timer Event, Reset Method


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net