I want to do 3 things
Dim myArr() As String = {"6200", "6600", "7900", "8600", "9900"}
myInt = "7700"
1 .How do I determine which integer in myArr is closest to myInt
2. Next Closest
3. Next closest
First closest txt1. text = myArr(i) & " 1st in line"
2nd txt2.text = myArr(i) & " 2nd in line"
3rd txt3.text = myArr(i) & " 3rd in line"
I gave an attempt at this but I am embarrassed to show it as it didnt work and it was terrible
Any help is much appreciated
vbMarkO
Dim myArr() As String = {"6200", "6600", "7900", "8600", "9900"}
myInt = "7700"
1 .How do I determine which integer in myArr is closest to myInt
2. Next Closest
3. Next closest
First closest txt1. text = myArr(i) & " 1st in line"
2nd txt2.text = myArr(i) & " 2nd in line"
3rd txt3.text = myArr(i) & " 3rd in line"
I gave an attempt at this but I am embarrassed to show it as it didnt work and it was terrible
Any help is much appreciated
vbMarkO