Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

Array item selection

 
Matt Hall
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
I want to select members of an array that lie between certain values.

i.e. i have the array

DHand1[0] = 3;
DHand1[1] = 4;
DHand1[2] = 15;
DHand1[3] = 18;
DHand1[4] = 25;
DHand1[5] = 30;
DHand1[6] = 31;
DHand1[7] = 35;
DHand1[8] = 37;
DHand1[9] = 39;
DHand1[10] = 42;
DHand1[11] = 45;
DHand1[12] = 51;
 
Matt Hall
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ignore this, was an accidental post, the other thread of the same name contains my full question. Admin, feel free to delete this thread.
 
Stephen Foy
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Report post to moderator
if you want to select certain members of an array with certain values, you should go through a for loop.



Hope this helps.
 
    Bookmark Topic Watch Topic
  • New Topic