View Single Post
  #1 (permalink)  
Old 04-11-2008
tukyunaaya tukyunaaya is offline
Jr. Member
 
Join Date: Apr 2008
Posts: 223
BRL$: 279.98
Thanks: 0
Thanked 4 Times in 3 Posts
Rep Power: 29
tukyunaaya is on a distinguished road
Default Incrementing Label [ Counter ]

Option Explicit
Dim i As Integer
Dim sTextInc As String

Private Sub Form_Load()
sTextInc = LblInc.Caption
End Sub

Private Sub TmrInc_Timer() 'Increments text in LblInc
i = i + 1
If i > Len(sTextInc) Then
i = 0
TmrInc.Interval = 1000
Else
LblInc.Caption = Left(sTextInc, i)
TmrInc.Interval = 100
End If
End Sub


Current Promotions... Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a new Reply there and earn BRL$ 3 for every reply.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Reply With Quote