Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

Using Do While...Loop To Scan for Letters in Puzzle? (Wheel of Fortune)

$
0
0
I am trying to learn the concept of Do While...Loop, and I am wondering how I could use this feature to scan for any instance of the chosen letter in the puzzle?

Like, if I was to pick a T, and it was to scan for any instances of the letter T in this phrase:

TO BE OR NOT TO BE THAT IS THE QUESTION

Each time a T was to be found, the T would be revealed, and then it would search for the next instance of the T until they were all revealed.

If there was no occurrence of a letter in this puzzle, like say, J. A message box (in this example) would pop up saying "sorry no J's". How do I do that in the Do While Loop? Or would I need something else for this or both examples I mentioned?

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>