Array definition [message #55277] |
Wed, 08 August 2007 10:00 |
Melanie
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
Hi,
I am trying to check an array of about 19000 elements for values that
are above a certain value. I then want to save only the index of the
larger values in a new array.
So, I am going through the original array with a for loop and checking
if each value is greater than 19:
for i=0, nelements-1 do begin
if (array1[i] gt 19) then...
Next, if the value in array1 is in fact greater than 19, I want to
save the value of i into a new array such as
if(array1[i] gt 19) then array2[...]=i
But I'm not sure how to make this work such that I can write each
subsequent i value for which the value in array1 is gt 19 into each
subsequenbt space in array2...
Any ideas? Please let me know if this question is not clear...
|
|
|