Counter problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JuAn2226
    New Member
    • Mar 2008
    • 27

    Counter problem

    hi i'm having trouble with my code

    [CODE=vb]If lblNumberArray( i) = lbltmpNumber Then
    EndTime = Now
    lblEnd(i).Capti on = Format(EndTime, "hh:mm:ss")
    StartTime = lblTime(i)
    Timeduration = ((DatePart("n", EndTime) - DatePart("n", StartTime)) * 60) + (DatePart("s", EndTime) - DatePart("s", StartTime))
    lblDuration(i). Caption = "" & Timeduration
    Counter = Counter + 1
    lblNum.Caption = "" & Counter
    End if[/CODE]

    What i'm trying to do here is whenever time duration is display. The Counter will increase by 1 but i'm facing problem here. The Counter never increase when time duration is display. Besides that i dont know how to do coding to total the values in time duration array.
    Last edited by Killer42; Mar 18 '08, 11:35 PM. Reason: Added CODE=vb tag
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Where is Counter defined?

    Comment

    Working...