Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27186

Exclude value from array

$
0
0
Hey

I am just going through some code to make a tiny change and wanted to confirm if there is another way. So I have this line of code
Dim _A As System.Collections.BitArray
.
..
...
Return _A.Cast(Of Boolean).Contains(True)

Which converts everything from the bitarry to a boolean and then checks for which of them are true. And all the true variables are returned. That is what I get from my understanding.

Now is there any way to add an exception to this so that it excludes a specific bit from the array? I dont want a specific bit returned if it in fact true. Or would I have to use a for and if loop insead of that?

Thanks!

Viewing all articles
Browse latest Browse all 27186

Trending Articles



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