Solved

On timer / Time interval

Posted on 2002-06-17
5
401 Views
Last Modified: 2008-03-06
Anybody has a suggestions of how to make a label, text field, or a subform blink? or stay there for a couple seconds and then dissapear?
I know that we can use On timer and time interval for forms but I have never used it and I just need a sample of how to do this..

I take all the suggestions but I mostly would like to know how to make a label blink.. so it will on and off..

Thank you

0
Comment
Question by:G4B
5 Comments
 
LVL 1

Expert Comment

by:lyners
ID: 7084276


Set timer to 1000 (1 second)

Sub OnTimer
     if label.visible = true then
         label.visible = false
     else
         label.visible = true
     end if
end sub


0
 
LVL 1

Expert Comment

by:drivers
ID: 7084957
By using lyners code u also can take two same size labels with different colors. place them on each other. So once then u will hv differnt color combo while blinking. I hv done something same with Bulb lightning picture.

just a suggestion
0
 
LVL 4

Accepted Solution

by:
wesleystewart earned 50 total points
ID: 7088808
You can shrink it even more:

Set timer to 1000 (1 second)

Sub OnTimer
    label.visible = not label.visible
end sub




0
 

Author Comment

by:G4B
ID: 7089073
Thank you for all your help. This worked great!! just they way I wanted. Thank you for all the suggestions I received.

0
 
LVL 4

Expert Comment

by:wesleystewart
ID: 7089114
For further thought...

To make the label disappear after blinking for 30 seconds:

Sub OnTimer
static lngTime as integer
    lngTime = lngTime + 1
    if lngTime < 30 then
      label.visible = not label.visible
    else
      label.visible = False
    end if  
end sub

You can do all sorts of stuff with static variables, which retain their value between calls.  

Wes





0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 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