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

[RESOLVED] How may I use more than 1 character as a red flag for removal?

$
0
0
Hello there. I have a list of items for a student game. I borrowed some older code from a bingo game that would let you take away numbers from the bingo list of numbers to be called.

Now I am working on a literacy game, and the game a list of words that can be taken away from depending on the options they choose.

I am trying to modify this code to remove certain words from the list.

Dim i As Long

For i = RosterList.ListCount - 1 To 0 Step -1
If Mid$(RosterList.List(i), 1, 1) = "N" Then
RosterList.RemoveItem i
End If
Next

Now before, with bingo if the number has a N in it, it would remove all the numbers with N, but now for this new game I would like it to remove any items that have the words "Click Here" or at least "Click"

I was wondering if this code could do that, because it did it brilliantly with the bingo game, but what would I have to modify, is there something about the 1,1 that would indicate the number of characters to look for? Thanks!

Viewing all articles
Browse latest Browse all 22012

Latest Images

Trending Articles



Latest Images

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