O
OD
I have a access form with a button to show a ticker tape.
What I would like to do is slow down the loop, something like sleep 500,
below is my code.
Private Sub TickerButton_Click()
Dim x, y, z, done As Integer
Dim varMyStr, varMyMsg As String
Dim varCounter As Integer
x = 0
y = 0
z = 0
varMyStr = ("It's hard to soar with eagles, when you fly with turkeys...")
x = Len(varMyStr)
y = 1
z = 20
done = 1
Do While done <= 10
done = done + 1
varMyMsg = Mid(varMyStr, y, z)
Me.TitleLable.Caption = varMyStr
varMyStr = Mid(varMyStr, 2, x - 1)
varMyMsg = Mid(varMyMsg, 1, 1)
varMyStr = varMyStr + varMyMsg
????Sleep 500
Loop
End Sub
this displays a message in a Lable on the form
What I would like to do is slow down the loop, something like sleep 500,
below is my code.
Private Sub TickerButton_Click()
Dim x, y, z, done As Integer
Dim varMyStr, varMyMsg As String
Dim varCounter As Integer
x = 0
y = 0
z = 0
varMyStr = ("It's hard to soar with eagles, when you fly with turkeys...")
x = Len(varMyStr)
y = 1
z = 20
done = 1
Do While done <= 10
done = done + 1
varMyMsg = Mid(varMyStr, y, z)
Me.TitleLable.Caption = varMyStr
varMyStr = Mid(varMyStr, 2, x - 1)
varMyMsg = Mid(varMyMsg, 1, 1)
varMyStr = varMyStr + varMyMsg
????Sleep 500
Loop
End Sub
this displays a message in a Lable on the form