i have a txt file that contains this data:
200 5
400 10
600 15
1000 20
i have to put them into 2 arrays.
how do i make it so that it checks if the data is increasing?
Printable View
i have a txt file that contains this data:
200 5
400 10
600 15
1000 20
i have to put them into 2 arrays.
how do i make it so that it checks if the data is increasing?
could you be a little more specific? what do you mean by the data increasing?
200 5
400 10
600 15
1000 20
the first column is the dollar values the second is the discount if the values are >= to the it's counterpart.
It should check that the dollar and discount entries in the discount file are increasing. if it's not, a message should be displayed and the program should terminate.
Something like this should do it:
VB Code:
For i As Integer = 0 To Arr.GetUpperBound(0) - 1 If Arr(i) >= Arr(i + 1) Then MessageBox.Show("Array not increasing", "yada,yada, yada") End ' Exit app End If Next