VeeBeeIntern
New Member
- Joined
- Jun 19, 2014
- Messages
- 6
I have the following snippet of code which matches values from two arrays that are not indexed the same:
This enters the values into the array TheCDF. However, if I wish to store the values as variables (called "Diff1" and "Diff2") and then enter these values into the corresponding array locations it returns zeros. How does this make any sense? Any help is greatly appreciated
Code:
For i = 2 To NumTrades
For j = 0 To 2 * TheRange
If Abs(ActCDF(i, 1) - TheCDF(j, 0)) < 0.001 Then
TheCDF(j, 3) = Abs(ActCDF(i, 2) - TheCDF(j, 2))
TheCDF(j, 4) = Abs(ActCDF(i - 1, 2) - TheCDF(j, 2))
End If
Next j
Next i
This enters the values into the array TheCDF. However, if I wish to store the values as variables (called "Diff1" and "Diff2") and then enter these values into the corresponding array locations it returns zeros. How does this make any sense? Any help is greatly appreciated