Using the Timer on a form

carlo.mynycarlo.myny Member Posts: 8
edited 2004-03-04 in Navision Attain
I want to use the timer property of a form but only when I have pushed a button. Ans I want to stop the timer when I've pushed another button.
Is there a way to activate and/or deactivate the timer of a form.

Comments

  • Timo_LässerTimo_Lässer Member Posts: 481
    You can't set the TimerIntervall but what you want can be done as follows:
    Form - OnTimer()
    If TimerActive THEN BEGIN
      [YourProcessingHere]
    END;
    
    StartTimerButton - OnPush()
    TimerActive := TRUE;
    
    StopTimerButton - OnPush()
    TimerActive := FALSE;
    
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Sign In or Register to comment.