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

VS 2010 How to range an array?

$
0
0
Hi Guys!

First, I am using VS 2012.

I have a number m and p(n) array.

How to say;
Code:

rng= Lbound(p) to Ubound(p)

For Each val in rng
If Not m Mod val = 0 Then
'Do something
End If

???

Basicly I want to be sure m is not divisible with none of the p() array values.

Thanks a lot!

Viewing all articles
Browse latest Browse all 27355

Trending Articles



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