Logic

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Ilacqua

    #1

    Logic

    This is more of a logic question than anything else. I really struggle with
    these types of seemingly simple problems. I have a form with several
    criteria and want to set a limit on how often the button on the form is
    "alive". If the criteria is changed I allow an update, but if the criteria
    is not changed I allow updates every x minutes.
    The criteria.. I build a string of the 3 criterion and compare it each pass
    through, that one is fairly easy but in combination with the time, I'm
    really struggling. I have to account for the fact I want it live on first
    push etc.
    Any help would be greatly appreciated.
    I use VB.NET

    Paul



  • Cor Ligthert[MVP]

    #2
    Re: Logic

    Paul,

    For your problem is in my idea the VB Static keyword very usefull in a
    method raised by a timer, in such a field you can keep track of the events
    that has been happened, while you don't have to use a global field for that.

    Cor

    "Paul Ilacqua" <pilacqu2@twcny .rr.comschreef in bericht
    news:OG3GH070HH A.5980@TK2MSFTN GP04.phx.gbl...
    This is more of a logic question than anything else. I really struggle
    with these types of seemingly simple problems. I have a form with several
    criteria and want to set a limit on how often the button on the form is
    "alive". If the criteria is changed I allow an update, but if the criteria
    is not changed I allow updates every x minutes.
    The criteria.. I build a string of the 3 criterion and compare it each
    pass through, that one is fairly easy but in combination with the time,
    I'm really struggling. I have to account for the fact I want it live on
    first push etc.
    Any help would be greatly appreciated.
    I use VB.NET
    >
    Paul
    >
    >
    >

    Comment

    Working...