hi,
what im trying to do is scan each char in a string,wait a second or two then scan another char,wait a second , scan another char,ect...until it finishes the whole string.
To delay I have used the Sleep function, the GetTickcount and now the SetTimer function. The Sleep function and the GetTickCount function wont allow me to break out once its been fired. The SetTimer functin works great but it doesnt
execute the lines of code sequencially. I know I can use the vb timer function but its too confusing for me.Im trying to make it into a function that looks like this
" Delay(100)", the argument is the number of seconds to delay but I cant do that with vb timer. CAn Anyone make it so that its just one functino that accepts an argument, like Delay(30) with the vb timer?Thankx in advance.
Example,
dim line as string
dim count as integer
line="Hello World!"
for count=1 to len(line) step 1
"Here I would like it to delay a bit before print another char , trying to make a function that looks like this
Delay(30), but with no luck"
text1.seltext=mid(line,count,1)
next