|
-
Dec 3rd, 2005, 12:00 PM
#1
Thread Starter
New Member
need help creating a loop
I am doing a hangman assignment , I need the application to display the correct amount of dashes"_" when player one enters his word. Here is my code so far. I was told I need to do a loop but I cannot figure it out for nothing.
'get a 5-letter word from the first player
Do
word = InputBox("Enter a word", "Hangman Game")
Loop Until word.Length = word.Length
'convert to uppercase
word = word.ToUpper()
Me.uiWordLabel.Text = "_"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|