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

How to modify this search and text compare to just one specific instance?

$
0
0
Hi there everyone. I am working on a bingo caller, and the user can switch the function of showing called numbers on the board, or uncalled numbers.

When they switch, the prog will check to see if the number was called, and if so, will keep it invisible.

Like this.

Dim i61 As Long

For i61 = List2.ListCount - 1 To 0 Step -1
If InStr(1&, List2.List(i61), "61", vbTextCompare) Then
BoardNumber(60).Visible = False
End If
Next

The problem is,

using VBTextCompare, if the program finds the number 61, it will also take the numbers 6 and 1 out as well. Is there a way to change it so it will only look for 61, and not 6 and 1 as well? Thanks! !!

Viewing all articles
Browse latest Browse all 21337

Trending Articles



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