Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exist and ChildObjects
#1
Not Solved
Hello,

I've got a problem when I try to use the "Exist" method on an object that I get thanks to ChildObjects.

For example :

Code:
Set odesc = Description.Create
odesc("Class Name").Value = "JavaTable"

Set a = JavaWindow("Index:=2").ChildObjects(odesc)

msgbox a.count          'Display "3"

a(0).highlight          'Works fine
msgbox a(0).Exist       'Display "False"
a(0).highlight          'Throw a general run error


I don't understand why the Exist method doesn't work.
Question 1 : How can I use the Exist method in this case ?


I tried to use "micClass" instead of "Class Name" but the JavaTables are not detected.

Code:
Set odesc = Description.Create
odesc("micClass").Value = "JavaTable"

Set a = JavaWindow("Index:=2").ChildObjects(odesc)

msgbox a.count          'Display "0"

Question 2 : Do you know why the "micClass" property doesn't match any of the 3 JavaTables in my window ?



Thanks in advance !
Reply


Messages In This Thread
Exist and ChildObjects - by SAKDOSS - 09-02-2009, 09:29 PM
RE: Exist and ChildObjects - by sreekanth chilam - 09-03-2009, 12:18 AM
RE: Exist and ChildObjects - by SAKDOSS - 09-03-2009, 01:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 3,147 04-24-2018, 02:12 PM
Last Post: Ankur
  Time Delay issue with Exist mv8167 11 24,831 06-19-2017, 02:56 PM
Last Post: grosorg
  Performance Issues Using '.Exist' AndyBSG 2 3,502 12-12-2014, 03:24 PM
Last Post: AndyBSG
  datatable column exist diya 3 12,553 12-11-2012, 11:24 AM
Last Post: elango87
  Check if exist not selected radiobutton sedin 6 7,772 09-12-2012, 12:55 PM
Last Post: sedin

Forum Jump:


Users browsing this thread: 1 Guest(s)