by the way, I'm using Microsoft Visual Studio 2005.
Hi you can copy this and make it work for your project. This is a vb6 solution;
-
'we are assuming the the values you are checking
-
'are stored in arValues()
-
Dim intLow As Integer
-
Dim intHigh As Integer
-
Dim intCount As Integer
-
Dim intLoop As Integer
-
-
intLow = CInt(txtLow.Text)
-
intHigh = CInt(txtHigh.Text)
-
-
For intLoop = 0 To UBound(arValues)
-
If arValues(intLoop) <= To intHigh _
-
AND arValues(intLoop) >= intLow Then
-
intCount = intCount + 1
-
End If
-
Next intLoop
-
-
'intCount now holds the number of values in between the two user choices
-