how would you go about repeating a task
Hi All
how would you go about repeating a task a set number of time (eg: You enter into a text box how many times you wont your command run)
thanks in advance,
SoLiDoX
[179 byte] By [
SoLiDoX] at [2007-11-18 2:14:05]

# 2 Re: how would you go about repeating a task
You can improve it even more, but just to give you an "on the fly"
idea of common mistakes users could step into...
Dim i As Integer
If IsNumeric(Text1.text) then
if Clng(text1.text)<32000 then
For i = 1 To Cint(Text1.Text)
'..... code the task you want done here
Next
else
'value is too big!
Msgbox "Enter a number lesser then or equal to 32000!"
end if
Else
'not a numeric value
msgbox "Enter a numeric value in textBox"
End If