"kieran" <ki********@hotmail.com> wrote in message

news:11**********************@g47g2000cwa.googlegr oups.com...

Hi,

If i have a start value (i.e. 920001) and an end value (i.e. 935000)

and i want to pick out every number between the two values and then,

for example, store it in an array. How would i go about this i.e.

identifying each integer value between these two values.

Thanks for any and all help.

Dim arr As Integer()

Dim value1 As Integer = 920001

Dim value2 As Integer = 935000

Dim maxValue As Integer = Math.Max(value1, value2)

Dim minValue As Integer = Math.Min(value1, value2)

ReDim arr(maxValue - minValue)

For i As Integer = 0 To (maxValue - minValue)

arr(i) = (minValue + i)

Next

The above example is just that, an example. Quick and dirty with some

extra's thrown in just in case :)

HTH,

Mythran