dcsimg
Results 1 to 7 of 7

Thread: [VB6/VBA] Timer class.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2015
    Posts
    1,351

    [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
    Posts
    351

    Re: [VB6/VBA] Timer class.

    Very useful

  3. #3
    Lively Member
    Join Date
    Jun 2016
    Posts
    81

    Re: [VB6/VBA] Timer class.

    great job

  4. #4
    Addicted Member
    Join Date
    Jan 2015
    Posts
    169

    Re: [VB6/VBA] Timer class.

    all ways dumplicated post, sorry

  5. #5
    Addicted Member
    Join Date
    Jan 2015
    Posts
    169

    Resolved Re: [VB6/VBA] Timer class.

    Quote Originally Posted by xxdoc123 View Post
    Very useful
    there has one uses paul caton's thunk in excelhome

  6. #6

  7. #7
    Addicted Member
    Join Date
    Jan 2015
    Posts
    169

    Re: [VB6/VBA] Timer class.

    when i say excelhome, i mean a forum
    http://club.excelhome.net/thread-629386-1-1.html this used Paul Caton's thunk in class
    but it can not be used in office x64

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
  •  



Featured


Click Here to Expand Forum to Full Width