Locating position of Array

May 25, 2013 at 2:52am
For example, for an employee clock in program, I type in the employee id, it searches the array to see if its there. Once the ID is found, I want to store the position of the ID number from the array, into an integer.

Thank You,
May 25, 2013 at 6:14am
Well, if you use a for loop to iterate through an array, just store the value of whatever variable that you're iterating once the ID matches the one in the array (so just use an if statement).
Topic archived. No new replies allowed.