Hi I need to determine the maximum value in 2 arrays and thought the code below would do it just nice. Butttt____ it doesnt seem to roll through and find the highest value.
Anyone got any clues?
===================================================
For i = LBound(myArray1) to UBound(myArray1) Step 1
If (max_val < myArray2(i)) Then
max_val = myArray2(i)
End If
If (max_val < myArray3(i)) Then
max_val = myArray3(i)
End If
Next
===================================================
Cheers Live long and make your kids suffer..
Anyone got any clues?
===================================================
For i = LBound(myArray1) to UBound(myArray1) Step 1
If (max_val < myArray2(i)) Then
max_val = myArray2(i)
End If
If (max_val < myArray3(i)) Then
max_val = myArray3(i)
End If
Next
===================================================
Cheers Live long and make your kids suffer..