2 Replies Latest reply on Feb 15, 2008 1:27 PM by henris

    position of an element in an Array

    iruvai
      Hello,

      Is there a method to get the position of an element in an array?
      if I have an Array like this
      myArray=[apple,pears,orange,banana];

      when I ask for "apple" I would like to have 0 returned (its position in the array)
      when I ask "banana", it will return 3

      Thanks

      Henri