January 21st, 2012, 05:12 PM
Join Date: Aug 2010
Time spent in forums: 20 h 12 m 16 sec
Reputation Power: 5
Is this acceptible coding??
Context: I have this little peice of code that I just need to display something on a caption label for about 5 seconds so that the user see's the success or failure of an action they have done.
This is the excerpt, is this Ok? Could this be done any better? It does work, but sometimes it doesn't...
'I want a delay here, I'll do it when I figure it out
Dim EndTime As String
EndTime = (Now.ToString("ss") + 5)
Do Until (EndTime = CStr((Now.ToString("ss"))))
'reset the form