Hi:
I'm trying to write a routine that will permit my VB.NET program to
pause execution for five minutes and try a task again if there is a
failure. After a set number of tries it should return a failure
notification.
I know how to do everything except make it hibernate for five minutes -
if anyone knows how to do this I would GREATLY apprecaite it!
=============== =============== ==============
Logially:
dim error_counter as integer = 0
while error_counter < 10
if callmainfunctio n()
' it worked - return
return .t.
endif
' add one to the error counter:
error_counter += 1
** wait five minutes
"system.sle ep(5 minutes)"
end while
return .f.
=============== ===========
Thanks very much!
Fred
I'm trying to write a routine that will permit my VB.NET program to
pause execution for five minutes and try a task again if there is a
failure. After a set number of tries it should return a failure
notification.
I know how to do everything except make it hibernate for five minutes -
if anyone knows how to do this I would GREATLY apprecaite it!
=============== =============== ==============
Logially:
dim error_counter as integer = 0
while error_counter < 10
if callmainfunctio n()
' it worked - return
return .t.
endif
' add one to the error counter:
error_counter += 1
** wait five minutes
"system.sle ep(5 minutes)"
end while
return .f.
=============== ===========
Thanks very much!
Fred
Comment