Solved

timer control

Posted on 1999-01-19
1
249 Views
Last Modified: 2010-05-03
I am simulating a LED display panel and I am displaying messages stored in a database table. The program reads messages serialy and displays one each time it is read.

Now-a message can have one or more screen displys(at most 3) So I want to use a timer(or annything that will get the job done) to monitor if all the screens have been displayed so as to go on and display the next message.
0
Comment
Question by:serameng
1 Comment
 
LVL 3

Accepted Solution

by:
traygreen earned 50 total points
ID: 1469398
Use a timer..
In it's timer event place a the following static variable abd something along the lines of the code

Private Sub Timer1_Timer()
static iShowCount as integer

' will cycle 0-3
ishowcount = ishowcount + 1
if ishowcount = 0 then
   <Message> = GetNextMessage
end sub
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now