I have used below method, hope this will help you:
For i = 0 to 1000 ' range left to you...
var=webelement("innertext:=WELCOME").GetRoproperty ("index:=" & i)
If var = "ravi1976" then ' expected webelement value
msgbox(i)' index of the element
Even i have used this mehod only..it works fine.But it takes more time.To find out a single element it has to execute the loop from 0 to till the element..if the element is in 900th position,it will take more time to find that element.
Here i give my algorithm:
If <webelement with the text "WELCOME" is ther> then
Find the index of the element.