Results 1 to 7 of 7

Thread: Flashing fields

  1. #1
    Join Date
    Feb 2004
    Location
    UK
    Posts
    246

    Unanswered: Flashing fields

    Hi,
    Is it possible to make a field on a form flash if the values of that field fulfill certain criteria?
    If so how

    Regards
    John

  2. #2
    Join Date
    Feb 2004
    Location
    Dorset UK
    Posts
    147
    You could an ontimer event set, then within the event have the criteria for the fields.

    If the criteria matched then the field would have the back colour changed, then the next ontime event (say 5 seconds) it would check the backcolour value and alter it.

    Probably get quite annoying after a while ! Might be better to get the fields that Aren't correct to flash !!

    If you don't understand let me know and I'll upload a demo for you.

    Ken

  3. #3
    Join Date
    Feb 2004
    Location
    UK
    Posts
    246
    Ken
    I don't understand

    Regards
    John

  4. #4
    Join Date
    Sep 2003
    Location
    MI
    Posts
    3,713
    Originally posted by Sticker
    Ken
    I don't understand

    Regards
    John
    Some how I just don't quite believe you John ...

  5. #5
    Join Date
    Feb 2004
    Location
    UK
    Posts
    246
    Originally posted by M Owen

    Some how I just don't quite believe you John


    Mike, I'm too transparent

  6. #6
    Join Date
    Sep 2001
    Location
    Chicago, Illinois, USA
    Posts
    601
    Not a problem, at all, to accomplish.

    One caveat, however . . . use of the form's timer system produces a "power sapping application (at least those are my rememberances before I banned the use of the timer system from all my applications, except very, very special circumstance).

    Set the TimerInterval for the form to whatever millisecond flash rate you want.

    Add code to your OnTimer event to alter the background color of the field in question.

    Something like:

    If [Field] < 10 then
    If [Field].BackgroundColor=00000000 then
    [Field].BackgroundColor=99999999
    Else
    [Field].BackgroundColor=00000000
    EndIf
    EndIf
    Me.Repaint

    You may want to further define the process by not setting the TimerInterval until a certain condition exists. That way the timer isn't running all the time.

  7. #7
    Join Date
    Feb 2004
    Location
    Dorset UK
    Posts
    147
    Thats better than my explanation I was typing, but I can still make a demo for you...

    Even though I tend to think you get the idea

    And yes, they sometimes do sap all events and are a huge pain if the form is left open ....It'll run for ever !!

    ~Ken

Posting Permissions

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