Solved

timer control

Posted on 1999-01-19
1
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

734 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