tags:

views:

37

answers:

1

hi i have form, the form contains JavaStaticText fields, and Combo box, and Text fields, i want index of all the items in that form, i tried to get checkpoints, and GET properties but i didn't get the index, how to get perticular index,

for example i am taken an example

Name XXXX
Job  XXXX
Country XXXX

i want index of Name,Job,Country, XXX index individually.

A: 

I'm not sure if I understand what you're trying to do, here's some code that gets the index of the 9 button on calc.exe, you can either base your solution on this or explain how it differs from what you're trying to do.

Set Children = Window("Calculator").ChildObjects()
For i = 0 to Children.Count -1
     If Children(i).GetROProperty("text") = "9" Then
        MsgBox "The index of 9 is " & i
        Exit For
    End If
Next

Edit: From another question you asked I see you're using the property class_index, if this is what you want just do:

JavaWindow("abc").JavaObject("xyz").GetROProperty("class_index")
Motti
ya i get the answer [closed]
Prime