VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



count down to zero with a given number

by Branden (3 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

this is very simple and is for begginners... it askes you to input a number... it will then loop messege box's until the number is counted down to zero.... then it replies with another messege box that says... "thats all"...... (updated code#2)

Rate count down to zero with a given number

Private Sub Command1_Click()
Dim x As String
x = InputBox("enter a number u would like To count down from")
Do While x > 0
x = x - 1
If x = 0 Then
MsgBox "Thats all"
Else
MsgBox x
End If
Loop
End Sub

Download this snippet    Add to My Saved Code

count down to zero with a given number Comments

No comments have been posted about count down to zero with a given number. Why not be the first to post a comment about count down to zero with a given number.

Post your comment

Subject:
Message:
0/1000 characters