3 Replies Latest reply on Nov 1, 2013 5:13 PM by Marcos Vainer Loeff

    AF2 Dataset

    vitorfarias

      Hi, 

       

       

       

      The method Display_DataUpdate() calls every 5 seconds and by default the AF Dataset the RefreshInterval is 10 second how i change this time via VBA code...

       

       

       

      Thanks

        • Re: AF2 Dataset
          Marcos Vainer Loeff

          Hello Vitor,

           

          The only way that I know to change the rate of the data refresh is editing the timer parameter from the file procbook.ini located on PIPC\DAT. The default value from this parameter is 5000 (5 seconds).

           

          However, you can write a function that calls the Display_DataUpdate() using the rate you want to Please refer to the code snippet below:

           

           

           
          Public Sub timerSub()
                Dim curtime As Double
                curtime = timer
                
                Do While True
                      If curtime < (timer - 10) Then
                            Debug.Print "timer was triggered"
                            curtime = timer
                      Else
                            DoEvents
                      End If
                Loop
                
          End Sub
          

           

           

          Hope this helps!