|
-
Apr 12th, 2004, 08:18 PM
#1
Thread Starter
New Member
arrays
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?
-
Apr 12th, 2004, 08:34 PM
#2
Frenzied Member
could you be a little more specific? what do you mean by the data increasing?
-
Apr 12th, 2004, 08:42 PM
#3
Thread Starter
New Member
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.
-
Apr 13th, 2004, 05:41 PM
#4
PowerPoster
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|