I found a bug in my code for my binary clock that I submitted. When the time reaches 1:00 PM, the
I found a "bug" in my code for my binary clock that I submitted. When the time reaches 1:00 PM, the minutes section of the clock stop
Rate I found a bug in my code for my binary clock that I submitted. When the time reaches 1:00 PM, the
(2(2 Vote))
hour = Format(Time, "h")
If hour < 10 Then
minute = Mid(Time, 3, 2)
Else
minute = Mid(Time, 4, 2)
End If
second = Format(Time, "s")
Replace that section with the following section of corrected:
hour = Format(Time, "h")
If hour < 10 or hour > 12 Then
minute = Mid(Time, 3, 2)
Else
minute = Mid(Time, 4, 2)
End If
second = Format(Time, "s")
If you fancy some trial and error, this section of code could also be redone using LEN instead of < and >.
I found a bug in my code for my binary clock that I submitted. When the time reaches 1:00 PM, the Comments
No comments yet — be the first to post one!
Post a Comment