Results 1 to 3 of 3

Thread: [VB6/VBA] Timer class.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2015

    [VB6/VBA] Timer class.

    Hello everyone!

    This class allows to use the timers in VB6/VBA. It contains the Interval propertiy which sets the interval between the Tick events. It also contains the Tag property which allows to hold any data associated with the timer instance. The class uses the assembly thunks which check allow use the single class without any other dependencies. It also has the simple checking to reduce the crashes. It check the EbMode function and if the code is stopped it automatically disables the timers and if the code is in the stepping mode it just bypasses the events generation until the code is running. This checking simplifies debugging but doesn't exclude the crashes (because if the timer wasn't disabled since the last debugging session it'll continue execution with the old invalid data.) This code is compatible with the 64 bit office as well. If you want to add a method to the class you should update the TIMERPROC_INDEX constant according to the offset.

    Link on GitHub.

    Thanks for your attention!

    The trick, 2019.

  2. #2
    Hyperactive Member
    Join Date
    Aug 2016

    Re: [VB6/VBA] Timer class.

    Very useful

  3. #3
    Join Date
    Jun 2016

    Re: [VB6/VBA] Timer class.

    great job

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width